資源簡(jiǎn)介
進(jìn)一步的封裝RestSharp,完成RestSharpUtil幫助類,減少RestRequest的組裝頻率

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
///?
///?封裝的接收REST返回結(jié)果
///?現(xiàn)有的同步工程返回值用的是APIResult
///?
///?返回結(jié)果中的值類型
public?class?ResponseMessage
{
????/**
?????*?是否成功
?????*/
????public?Boolean?success;
????/**
?????*?反饋數(shù)據(jù)
?????*/
????public?T?content;
????/**
?????*?反饋信息
?????*/
????public?String?message;
????/**
?????*?響應(yīng)碼
?????*/
????public?int?code;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????????580??2019-03-21?13:24??ResponseMessage.cs
?????文件?????????747??2019-03-21?14:38??RestParam.cs
?????文件????????4452??2019-03-21?14:37??RestSharpApiUtil.cs
評(píng)論
共有 條評(píng)論