public PostsRequestModel(EPostsRequestType requestType) { ApiPath = "/api/v3/posts"; Method = ERestCommands.GET; RequestType = requestType; }
public void Send(IModelSend senderModel) { var contact = ContactCreator.CreateContact(senderModel); contact.Reciever = this; contact.Sender.Send(senderModel); if (senderModel is PostsRequestModel model) { _postsRequestType = model.RequestType; } }