Exemple #1
0
 public EventService(string url, ResponseToken token)
 {
     this.createRestService = new CreateServiceBase <Event, Event>(url, token, "events");
     this.listRestService   = new ListServiceBase <Event>(url, token, "events");
     this.getRestService    = new GetServiceBase <Event>(url, token, "events");
     this.deleteRestService = new DeleteServiceBase <Event>(url, token, "events");
     this.updateRestService = new UpdateServiceBase <Event, Event>(url, token, "events");
 }
Exemple #2
0
 public GroupService(string url, ResponseToken token) : base(url, token, "groups")
 {
     this.createRestService = new CreateServiceBase <Group, Group>(url, token, "groups");
     this.listRestService   = new ListServiceBase <Group>(url, token, "groups");
     this.getRestService    = new GetServiceBase <Group>(url, token, "groups");
     this.deleteRestService = new DeleteServiceBase <Group>(url, token, "groups");
     this.updateRestService = new UpdateServiceBase <Group, Group>(url, token, "groups");
 }
 public ContactService(string url, ResponseToken token) : base(url, token, "contacts")
 {
     this.createRestService = new CreateServiceBase <Contact.ContactRequest, Contact.ContactResponse>(url, token, "contacts");
     this.listRestService   = new ListServiceBase <Contact.ContactResponse>(url, token, "contacts");
     this.getRestService    = new GetServiceBase <Contact.ContactResponse>(url, token, "contacts");
     this.deleteRestService = new DeleteServiceBase <Contact.ContactResponse>(url, token, "contacts");
     this.updateRestService = new UpdateServiceBase <Contact.ContactRequest, Contact.ContactResponse>(url, token, "contacts");
 }
Exemple #4
0
        public TaskService(string url, ResponseToken token)
            : base(url, token, "tasks")
        {
            this.contactService  = new ContactService(url, token);
            this.categoryService = new CategoryService(url, token);

            this.createRestService = new CreateServiceBase <Task.TaskRequest, Task.TaskResponse>(url, token, "tasks");
            this.listRestService   = new ListServiceBase <Task.TaskResponse>(url, token, "tasks");
            this.getRestService    = new GetServiceBase <Task.TaskResponse>(url, token, "tasks");
            this.deleteRestService = new DeleteServiceBase <Task.TaskResponse>(url, token, "tasks");
            this.updateRestService = new UpdateServiceBase <Task.TaskRequest, Task.TaskResponse>(url, token, "tasks");
        }