コード例 #1
0
        public SignItem GetSignItem(IAopRequest <T> request, string reponseBody)
        {
            if (string.IsNullOrEmpty(reponseBody))
            {
                return(null);
            }
            SignItem signItem = new SignItem();
            string   text     = signItem.Sign = GetSign(reponseBody);
            string   text2    = signItem.SignSourceDate = GetSignSourceData(request, reponseBody);

            return(signItem);
        }
コード例 #2
0
        public SignItem GetSignItem(IAopRequest <T> request, string responseBody)
        {
            if (string.IsNullOrEmpty(responseBody))
            {
                return(null);
            }

            var signItem = new SignItem();
            var sign     = GetSign(responseBody);

            signItem.Sign = sign;

            var signSourceData = GetSignSourceData(request, responseBody);

            signItem.SignSourceDate = signSourceData;

            return(signItem);
        }
コード例 #3
0
ファイル: AopJsonParser.cs プロジェクト: zanderphh/Voucher
        public SignItem GetSignItem(IAopRequest <T> request, T response)
        {
            string body = response.Body;

            if (string.IsNullOrEmpty(body))
            {
                return(null);
            }

            SignItem signItem = new SignItem();
            string   sign     = GetSign(body);

            signItem.Sign = sign;

            string signSourceData = GetSignSourceData(request, body);

            signItem.SignSourceDate = signSourceData;

            return(signItem);
        }