コード例 #1
0
        public PostsRequestModel(EPostsRequestType requestType)
        {
            ApiPath = "/api/v3/posts";
            Method  = ERestCommands.GET;

            RequestType = requestType;
        }
コード例 #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;
            }
        }