Example #1
0
        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));
        }
Example #2
0
        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));
        }
Example #3
0
        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));
        }
Example #5
0
        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));
        }
Example #6
0
        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));
        }
Example #7
0
        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));
        }
Example #8
0
        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));
        }
Example #9
0
        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));
        }
Example #10
0
        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));
        }
Example #11
0
        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));
        }
Example #12
0
        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));
        }
Example #13
0
        public async Task <AuthModel> Login(LoginModel LoginInstance)
        {
            AuthenObject AuthenInstance = new AuthenObject();

            return(await this.APIBuilder.Post <LoginModel, AuthModel>("login", LoginInstance, new List <string>(), AuthenInstance));
        }