Package zendeskapi.models.topics

Examples of zendeskapi.models.topics.IndividualTopicSubscriptionResponse


  public IndividualTopicSubscriptionResponse createTopicSubscription(long userId, long topicId) throws ZendeskApiException {
    TopicSubscription topicSubscription = new TopicSubscription();
    topicSubscription.setUserId(userId);
    topicSubscription.setTopicId(topicId);
    IndividualTopicSubscriptionResponse individualTopicSubscriptionResponse = new IndividualTopicSubscriptionResponse();
    individualTopicSubscriptionResponse.setTopicSubscription(topicSubscription);
    try {
      return genericPost("topic_subscription.json", individualTopicSubscriptionResponse, IndividualTopicSubscriptionResponse.class);
    } catch (Exception e) {
      throw new ZendeskApiException("Creation of topic subscription with user id " +
          userId + " and topic id " + topicId + " failed", e);
View Full Code Here

TOP

Related Classes of zendeskapi.models.topics.IndividualTopicSubscriptionResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.