public EditMessageQuery(TamTamClient client, NewMessageBody newMessageBody, string messageId) : base(client, "/messages", newMessageBody, Method.PUT) { _messageId = new QueryParam <string>("message_id", messageId, this).Required(); }
public DeleteMessageQuery(TamTamClient client, string messageId) : base(client, "/messages", null, Method.DELETE) { _messageId = new QueryParam <string>("message_id", messageId, this).Required(); }
public AnswerOnCallbackQuery(TamTamClient client, CallbackAnswer callbackAnswer, string callbackId) : base(client, "/answers", callbackAnswer, Method.POST) { _callbackId = new QueryParam <string>("callback_id", callbackId, this).Required(); }
public GetChatsQuery(TamTamClient tamTamClient) : base(tamTamClient, "/chats", null, Method.GET) { _count = new QueryParam <int>("count", this); _marker = new QueryParam <long>("marker", this); }
public GetUploadUrlQuery(TamTamClient client, UploadType type) : base(client, "/uploads", null, Method.POST) { _type = new QueryParam <UploadType>("type", type, this).Required(); }
public RemoveMemberQuery(TamTamClient client, long chatId, long userId) : base(client, $"/chats/{chatId}/members", null, Method.DELETE) { _userId = new QueryParam <long>("user_id", userId, this).Required(); _block = new QueryParam <bool>("block", this); }
public ConstructQuery(TamTamClient client, ConstructorAnswer constructorAnswer, string sessionId) : base(client, "/answers/constructor", constructorAnswer, Method.POST) { _sessionId = new QueryParam <string>("message_id", sessionId, this).Required(); }
public UnsubscribeQuery(TamTamClient client, string url) : base(client, "/subscriptions", null, Method.DELETE) { _url = new QueryParam <string>("url", url, this).Required(); }