Пример #1
0
        public getUpdates getMessages()
        {
            var           request  = new RestRequest("getUpdates", Method.GET);
            IRestResponse response = client.Execute(request);
            getUpdates    o        = JsonConvert.DeserializeObject <getUpdates>(response.Content);

            return(o);
        }
Пример #2
0
        public getUpdates getMessagesWithOffset(int offsetValue)
        {
            var           request  = new RestRequest("getUpdates?offset=" + offsetValue, Method.GET);
            IRestResponse response = client.Execute(request);
            getUpdates    o        = JsonConvert.DeserializeObject <getUpdates>(response.Content);

            return(o);
        }