Page tree
Skip to end of metadata
Go to start of metadata

The "message" query returns a specific Message. The query requires a mandatory attribute for the id of the Message to retrieve.

The class has a simple static helper method, buildMessageGraphQueryWithMessageId(String). Similar methods are also available from WWClient and WWGraphQLEndpoint.

For greater control, create an ObjectDataSenderBuilder for the Message.ONE_MESSAGE_QUERY_OBJECT_NAME object, adding the Message id attribute, passing in Message fields and children. Instantiate a new MessageGraphQLQuery passing in the ObjectDataSenderBuilder as the parameter. Then pass this to WWClient.getMessageWithQuery().


Basic getMessage
    Message message = client.getMessageById(messageId);
    assert (!"".equals(message.getContentType()));
    ObjectDataSenderBuilder query = new ObjectDataSenderBuilder();
    query.addAttribute(MessageAttributes.ID, messageId);
    Message message = client.getMessageWithQuery(new MessageGraphQLQuery(query));


  1. Anonymous

    If you have faced some urgent need in additional source of money and still have one or two weeks till you get paid, there is no better way to get financial support than to use the advantageous offer of payday loan lenders providing bad credit borrowers with equal chances to enjoy the same benefits as good credit borrowers are able to get applying for 1000 personal loan.

  2. Anonymous

     Study in Italy Without IELTS No language proficiency like TOEFL, IELTS are required if the education has been in English Medium. Students who graduated from an English language speaking high school or higher education institution are not required to submit any additional documents to verify their English language proficiency.

Write a comment…