Difference between revisions of "Template:Json InternalIds Block - Java"

From Updox API
Jump to: navigation, search
(Created page with " private Map<String,Object> BuildMessage() throws Exception { List<String> internalIds = new ArrayList<>(); internalIds.add("1"); internalIds.ad...")
 
 
Line 2: Line 2:
 
     {
 
     {
 
         List<String> internalIds = new ArrayList<>();
 
         List<String> internalIds = new ArrayList<>();
         internalIds.add("1");
+
         internalIds.add("internal-id-for-1");
         internalIds.add("2");
+
         internalIds.add("internal-id-for-2");
         internalIds.add("3");
+
         internalIds.add("internal-id-for-3");
 
          
 
          
 
         Map<String,Object> messageData = new HashMap();
 
         Map<String,Object> messageData = new HashMap();

Latest revision as of 20:55, 11 December 2015

   private Map<String,Object> BuildMessage() throws Exception
   {
       List<String> internalIds = new ArrayList<>();
       internalIds.add("internal-id-for-1");
       internalIds.add("internal-id-for-2");
       internalIds.add("internal-id-for-3");
       
       Map<String,Object> messageData = new HashMap();
       messageData.put("internalIds", eventNotificationIds);
       
       Map<String,String> authData = new HashMap();
       authData.put("applicationId", "vendorId");
       authData.put("applicationPassword", "vendorPassword");
       messageData.put("auth", authData);
       
       return messageData;
   }