public SearchResult(String jsonString, String searchString, String searchUri, JsonResultType jsonResultType, TransactionType transactionType)
 {
     this.TransactionType = transactionType;
     this.JsonResultType = jsonResultType;
     this.SearchUri = searchUri;
     this.JsonString = jsonString;
     this.Text = searchString;
 }
Пример #2
0
 public JsonResultModel(JsonResultType resultType, object data, string message = "OK", bool login = true, bool access = true)
 {
     if (resultType == JsonResultType.success)
     {
         this.success = true;
     }
     else
     {
         this.success = false;
     }
     this.data    = data;
     this.login   = login;
     this.access  = access;
     this.message = message;
 }
Пример #3
0
 public SearchResult(String jsonString, String searchString, String searchUri, JsonResultType jsonResultType, TransactionType transactionType)
 {
     this.TransactionType = transactionType;
     this.JsonResultType  = jsonResultType;
     this.SearchUri       = searchUri;
     this.JsonString      = jsonString;
     this.Text            = searchString;
 }