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; }
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; }