Exemplo n.º 1
0
 public static bool IsError(this WechatBaseModel input)
 {
     return(input == null || string.IsNullOrEmpty(input.Errcode) == false && input.Errcode != "0");
 }
Exemplo n.º 2
0
 public static bool IsSuccess(this WechatBaseModel input)
 {
     return(input != null && string.IsNullOrWhiteSpace(input.Errcode) || input.Errcode == "0");
 }