Exemplo n.º 1
0
        public PostsRequestModel(EPostsRequestType requestType)
        {
            ApiPath = "/api/v3/posts";
            Method  = ERestCommands.GET;

            RequestType = requestType;
        }
Exemplo n.º 2
0
        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;
            }
        }