Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #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));
        }
        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));
        }
Beispiel #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));
        }