@@ -0,0 +1,1477 @@
+import com.messagebird.MessageBirdClient;%0Aimport com.messagebird.MessageBirdService;%0Aimport com.messagebird.MessageBirdServiceImpl;%0Aimport com.messagebird.exceptions.GeneralException;%0Aimport com.messagebird.exceptions.UnauthorizedException;%0Aimport com.messagebird.objects.conversations.*;%0A%0Apublic class ExampleUpdateConversation %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        if (args.length %3C 3) %7B%0A            System.out.println(%22Please specify your access key, the ID of a conversation and the status to update the conversation to.%22 +%0A                    %22 Example : java -jar %3Cthis jar file%3E test_accesskey test_conversationId archived%22);%0A            return;%0A        %7D%0A%0A        // First create your service object%0A        final MessageBirdService wsr = new MessageBirdServiceImpl(args%5B0%5D);%0A%0A        // Add the service to the client%0A        final MessageBirdClient messageBirdClient = new MessageBirdClient(wsr);%0A        final ConversationStatus newStatus = ConversationStatus.forValue(args%5B2%5D);%0A        try %7B%0A            final Conversation response = messageBirdClient.updateConversation(args%5B1%5D, newStatus);%0A            // Display message response%0A            System.out.println(response.toString());%0A        %7D catch (UnauthorizedException %7C GeneralException exception) %7B%0A            if (exception.getErrors() != null) %7B%0A                System.out.println(exception.getErrors().toString());%0A            %7D%0A            exception.printStackTrace();%0A        %7D%0A    %7D%0A%7D%0A

Add example for updating conversation.