| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using Newtonsoft.Json;
- namespace ResfullApi.Models
- {
- public class adminFunctionObj
- {
- [JsonProperty("id")]
- public string id { get; set; }
- [JsonProperty("role")]
- public string role { get; set; }
- [JsonProperty("name")]
- public string name { get; set; }
- [JsonProperty("link")]
- public string link { get; set; }
- [JsonProperty("note")]
- public string note { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- public class responseObjLogin:responseObjUtil
- {
- [JsonProperty("role")]
- public string role { get; set; }
- [JsonProperty("token")]
- public string token { get; set; }
- [JsonProperty("function")]
- public adminFunctionObj[] function { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- }
|