예제 #1
0
        public MessageResponse GetTopConversations()
        {
            var jsonObj = _client.Get<JObject>("messages/algo.json");
            var result = new MessageResponse(jsonObj);

            return result;
        }
예제 #2
0
        public MessageResponse GetSentMessages()
        {
            var jsonObj = _client.Get<JObject>("messages/sent.json");
            var result = new MessageResponse(jsonObj);

            return result;
        }
예제 #3
0
        public MessageResponse GetReceivedMessages()
        {
            var jsonObj = _client.Get<JObject>("messages/received.json");
            var result = new MessageResponse(jsonObj);

            return result;
        }
예제 #4
0
        public MessageResponse GetMyFeed()
        {
            var jsonObj = _client.Get<JObject>("messages/my_feed.json");
            var result = new MessageResponse(jsonObj);

            return result;
        }
예제 #5
0
        public MessageResponse GetFollowedConversations()
        {
            var jsonObj = _client.Get<JObject>("messages/following.json");
            var result = new MessageResponse(jsonObj);

            return result;
        }
예제 #6
0
        public MessageResponse Post(string message, List<KeyValuePair<string, string>> openGraphProperties)
        {
            var postData = new List<KeyValuePair<string, string>>
                {
                    new KeyValuePair<string, string>("body", message)
                };

            postData.AddRange(openGraphProperties);

            var jsonObj = _client.Post<JObject>("messages.json", postData);
            var result = new MessageResponse(jsonObj);

            return result;
        }
예제 #7
0
        public MessageResponse Post(string message)
        {
            var postData = new List<KeyValuePair<string, string>>
                {
                    new KeyValuePair<string, string>("body", message)
                };

            var jsonObj = _client.Post<JObject>("messages.json", postData);
            var result = new MessageResponse(jsonObj);

            return result;
        }