public async Task <StoryAggregate> PublicDetail(int Id) { List <string> Params = new List <string>(); AuthenObject AuthenObjectInstance = new AuthenObject(); return(await this.APIBuilder.Get <StoryAggregate>("public-detail/" + Id, Params, AuthenObjectInstance)); }
public async Task <List <StoryAggregate> > PublicList() { List <string> Params = new List <string>(); AuthenObject AuthenObjectInstance = new AuthenObject(); return(await this.APIBuilder.GetList <StoryAggregate>("public-list", Params, AuthenObjectInstance)); }
public async Task <StoryAggregate> Update(StoryAggregate StoryAggregate, string Token) { List <string> Params = new List <string>(); AuthenObject AuthenObjectInstance = new AuthenObject(); AuthenObjectInstance.IsAuthen = true; AuthenObjectInstance.Token = Token; return(await this.APIBuilder.Put <StoryAggregate, StoryAggregate>("update", StoryAggregate, Params, AuthenObjectInstance)); }
public async Task <User> Create(CreateUser User, string Token) { List <string> Params = new List <string>(); AuthenObject AuthenObjectInstance = new AuthenObject(); AuthenObjectInstance.IsAuthen = true; AuthenObjectInstance.Token = Token; return(await this.APIBuilder.Post <CreateUser, User>("signup", User, Params, AuthenObjectInstance)); }
public Task <Tag> Detail(int Id, string Token) { List <string> Params = new List <string>(); AuthenObject AuthenObjectInstance = new AuthenObject(); AuthenObjectInstance.IsAuthen = true; AuthenObjectInstance.Token = Token; return(this.APIBuilder.Get <Tag>("detail/" + Id.ToString(), Params, AuthenObjectInstance)); }
public async Task <List <StoryAggregate> > List(string Token) { List <string> Params = new List <string>(); AuthenObject AuthenObjectInstance = new AuthenObject(); AuthenObjectInstance.IsAuthen = true; AuthenObjectInstance.Token = Token; return(await this.APIBuilder.GetList <StoryAggregate>("list", Params, AuthenObjectInstance)); }
public async Task <StoryAggregate> Detail(string Token, int Id) { List <string> Params = new List <string>(); AuthenObject AuthenObjectInstance = new AuthenObject(); AuthenObjectInstance.IsAuthen = true; AuthenObjectInstance.Token = Token; return(await this.APIBuilder.Get <StoryAggregate>("detail/" + Id, Params, AuthenObjectInstance)); }
public Task <List <Tag> > List(List <int> Ids, string Token) { List <string> Params = new List <string>(); Params.Add(string.Join(",", Ids)); AuthenObject AuthenObjectInstance = new AuthenObject(); AuthenObjectInstance.IsAuthen = true; AuthenObjectInstance.Token = Token; return(this.APIBuilder.GetList <Tag>("list?ids=$1", Params, AuthenObjectInstance)); }
public async Task <List <UserView> > GetUser(string Token) { List <string> Params = new List <string>(); Params.Add("Id,Email,LastName,FirstName"); AuthenObject AuthenObjectInstance = new AuthenObject(); AuthenObjectInstance.IsAuthen = true; AuthenObjectInstance.Token = Token; return(await this.APIBuilder.GetList <UserView>("api/account/list?fields=$1", Params, AuthenObjectInstance)); }
public Task <List <Category> > List(List <int> Ids, string Token) { List <string> Params = new List <string>(); string Fields = Utilities.ClassToSelectedFields <Category>(); Params.Add(string.Join(",", Ids)); AuthenObject AuthenObjectInstance = new AuthenObject(); AuthenObjectInstance.IsAuthen = true; AuthenObjectInstance.Token = Token; return(this.APIBuilder.GetList <Category>("list?ids=$1", Params, AuthenObjectInstance)); }
public async Task <User> Detail(string Token) { List <string> Params = new List <string>(); string Fields = Utilities.ClassToSelectedFields <UserView>(); Params.Add(Fields); AuthenObject AuthenObjectInstance = new AuthenObject(); AuthenObjectInstance.IsAuthen = true; AuthenObjectInstance.Token = Token; return(await this.APIBuilder.Get <User>("detail?fields=$1", Params, AuthenObjectInstance)); }
public async Task <User> Update(User User, string Token) { List <string> Params = new List <string>(); string Fields = Utilities.ClassToSelectedFields <User>(); Params.Add(Fields); AuthenObject AuthenObjectInstance = new AuthenObject(); AuthenObjectInstance.IsAuthen = true; AuthenObjectInstance.Token = Token; return(await this.APIBuilder.Put <User, User>("update", User, Params, AuthenObjectInstance)); }
public async Task <AuthModel> Login(LoginModel LoginInstance) { AuthenObject AuthenInstance = new AuthenObject(); return(await this.APIBuilder.Post <LoginModel, AuthModel>("login", LoginInstance, new List <string>(), AuthenInstance)); }