C# Class Cedar.Foundation.WeChat.WxPay.Lib.WxPayData

微信支付协议接口数据类,所有的API接口通信都依赖这个数据结构, 在调用接口之前先填充各个字段的值,然后进行接口通信, 这样设计的好处是可扩展性强,用户可随意对协议进行更改而不用重新设计数据结构, 还可以随意组合出不同的协议数据包,不用为每个协议设计一个数据包结构
Show file Open project: Chinaccn/surfboard Class Usage Examples

Public Methods

Method Description
CheckSign ( ) : bool
FromXml ( string xml ) : object>.SortedDictionary
GetValue ( string key ) : object
GetValues ( ) : object>.SortedDictionary
IsSet ( string key ) : bool
MakeSign ( ) : string
SetValue ( string key, object value ) : void
ToJson ( ) : string
ToPrintStr ( ) : string
ToUrl ( ) : string
ToXml ( ) : string
WxPayData ( ) : System.Collections.Generic

Method Details

CheckSign() public method

public CheckSign ( ) : bool
return bool

FromXml() public method

public FromXml ( string xml ) : object>.SortedDictionary
xml string
return object>.SortedDictionary

GetValue() public method

public GetValue ( string key ) : object
key string
return object

GetValues() public method

public GetValues ( ) : object>.SortedDictionary
return object>.SortedDictionary

IsSet() public method

public IsSet ( string key ) : bool
key string
return bool

MakeSign() public method

public MakeSign ( ) : string
return string

SetValue() public method

public SetValue ( string key, object value ) : void
key string
value object
return void

ToJson() public method

public ToJson ( ) : string
return string

ToPrintStr() public method

public ToPrintStr ( ) : string
return string

ToUrl() public method

public ToUrl ( ) : string
return string

ToXml() public method

public ToXml ( ) : string
return string

WxPayData() public method

public WxPayData ( ) : System.Collections.Generic
return System.Collections.Generic