當前位置: 首頁>>代碼示例>>C#>>正文


C# Shared.System類代碼示例

本文整理匯總了C#中ZendeskApi_v2.Models.Shared.System的典型用法代碼示例。如果您正苦於以下問題:C# System類的具體用法?C# System怎麽用?C# System使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


System類屬於ZendeskApi_v2.Models.Shared命名空間,在下文中一共展示了System類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Import

 /// <summary>
 /// This end-point is for bulk importing tickets. It will allow you to 
 /// move data from legacy systems into Zendesk. We do not run triggers 
 /// or the likes during bulk imports like these.
 /// </summary>
 public IndividualTicketResponse Import(TicketImport ticket)
 {
     var body = new {ticket};
     return GenericPost<IndividualTicketResponse>(
         String.Format("imports/{0}.json", _tickets),
         body);
 }
開發者ID:EdVinyard,項目名稱:ZendeskApi_v2,代碼行數:12,代碼來源:Tickets.cs

示例2: UpdateTicket

        /// <summary>
        /// UpdateTicket a ticket or add comments to it. Keep in mind that somethings like the description can't be updated.
        /// </summary>
        /// <param name="ticket"></param>
        /// <param name="comment"></param>
        /// <returns></returns>
        public IndividualTicketResponse UpdateTicket(Ticket ticket, Comment comment=null)
        {
            if (comment != null)
                ticket.Comment = comment;
            var body = new { ticket };

            return GenericPut<IndividualTicketResponse>(string.Format("{0}/{1}.json", _tickets, ticket.Id), body);    
        }
開發者ID:valliyappan,項目名稱:ZendeskApi_v2,代碼行數:14,代碼來源:Tickets.cs

示例3: CreateTicketField

        public IndividualTicketFieldResponse CreateTicketField(TicketField ticketField)
        {
            var body = new
                           {
                               ticket_field = new
                                                  {
                                                      type = ticketField.Type,
                                                      title = ticketField.Title
                                                  }
                           };

            var res = GenericPost<IndividualTicketFieldResponse>("ticket_fields.json", body);
            return res;
        }
開發者ID:khalidabuhakmeh,項目名稱:ZendeskApi_v2,代碼行數:14,代碼來源:Tickets.cs

示例4: GenericBoolPostAsync

 public async Task<bool> ChangeUsersPasswordAsync(long userId, string oldPassword, string newPassword)
 {
     var body = new
     {
         previous_password = oldPassword,
         password = newPassword
     };
     return await GenericBoolPostAsync(string.Format("users/{0}/password.json", userId), body);
 }
開發者ID:ThiagoMatuchaki,項目名稱:ZendeskApi_v2,代碼行數:9,代碼來源:Users.cs

示例5: SuspendUserAsync

 public async Task<IndividualUserResponse> SuspendUserAsync(long id)
 {
     var body = new {user = new {suspended = true}};
     return await GenericPutAsync<IndividualUserResponse>(string.Format("users/{0}.json", id), body);
 }
開發者ID:ThiagoMatuchaki,項目名稱:ZendeskApi_v2,代碼行數:5,代碼來源:Users.cs

示例6: CreateUserAsync

 public async Task<IndividualUserResponse> CreateUserAsync(User user)
 {
     var body = new { user = user };
     return await GenericPostAsync<IndividualUserResponse>("users.json", body);
 }
開發者ID:ThiagoMatuchaki,項目名稱:ZendeskApi_v2,代碼行數:5,代碼來源:Users.cs

示例7: UpdateUserIdentity

 public IndividualUserIdentityResponse UpdateUserIdentity(long userId, UserIdentity identity)
 {
     var body = new { identity };
     return GenericPost<IndividualUserIdentityResponse>(string.Format("users/{0}/identities.json", userId), body);
 } 
開發者ID:ThiagoMatuchaki,項目名稱:ZendeskApi_v2,代碼行數:5,代碼來源:Users.cs

示例8: SetUsersPassword

 public bool SetUsersPassword(long userId, string newPassword)
 {
     var body = new {password = newPassword};
     return GenericBoolPost(string.Format("users/{0}/password.json", userId), body);           
 }
開發者ID:ThiagoMatuchaki,項目名稱:ZendeskApi_v2,代碼行數:5,代碼來源:Users.cs

示例9: SuspendUser

 public IndividualUserResponse SuspendUser(long id)
 {
     var body = new {user = new {suspended = true}};
     return GenericPut<IndividualUserResponse>(string.Format("users/{0}.json", id), body);
 }
開發者ID:ThiagoMatuchaki,項目名稱:ZendeskApi_v2,代碼行數:5,代碼來源:Users.cs

示例10: ReorderTicketForms

 public bool ReorderTicketForms(long[] orderedTicketFormIds)
 {
     var body = new { ticket_form_ids = orderedTicketFormIds };
     return GenericPut<bool>(string.Format("{0}/reorder.json", _ticket_forms), body);
 }        
開發者ID:NicolajLarsen,項目名稱:ZendeskApi_v2,代碼行數:5,代碼來源:Tickets.cs

示例11: ReorderTicketFormsAsync

 public async Task<bool> ReorderTicketFormsAsync(long[] orderedTicketFormIds)
 {
     var body = new { ticket_form_ids = orderedTicketFormIds };
     return await GenericPutAsync<bool>(string.Format("{0}/reorder.json", _ticket_forms), body);
 }
開發者ID:NicolajLarsen,項目名稱:ZendeskApi_v2,代碼行數:5,代碼來源:Tickets.cs

示例12: CreateTicketFormAsync

 public async Task<IndividualTicketFormResponse> CreateTicketFormAsync(TicketForm ticketForm)
 {
     var body = new { ticket_form = ticketForm };
     return await GenericPostAsync<IndividualTicketFormResponse>(_ticket_forms + ".json", body);
 }
開發者ID:NicolajLarsen,項目名稱:ZendeskApi_v2,代碼行數:5,代碼來源:Tickets.cs

示例13: UpdateTicketForm

 public IndividualTicketFormResponse UpdateTicketForm(TicketForm ticketForm)
 {
     var body = new  { ticket_form = ticketForm};
     return GenericPut<IndividualTicketFormResponse>(string.Format("{0}/{1}.json", _ticket_forms, ticketForm.Id), body);
 }
開發者ID:NicolajLarsen,項目名稱:ZendeskApi_v2,代碼行數:5,代碼來源:Tickets.cs

示例14: CreateTicketForm

 public IndividualTicketFormResponse CreateTicketForm(TicketForm ticketForm)
 {
     var body = new { ticket_form = ticketForm };
     return GenericPost<IndividualTicketFormResponse>(_ticket_forms + ".json", body);
 }
開發者ID:NicolajLarsen,項目名稱:ZendeskApi_v2,代碼行數:5,代碼來源:Tickets.cs

示例15: UpdateTicketField

 public IndividualTicketFieldResponse UpdateTicketField(TicketField ticketField)
 {
     var body = new
     {
         ticket_field = ticketField
     };
     return GenericPut<IndividualTicketFieldResponse>(string.Format("ticket_fields/{0}.json", ticketField.Id), body);            
 }
開發者ID:NicolajLarsen,項目名稱:ZendeskApi_v2,代碼行數:8,代碼來源:Tickets.cs


注:本文中的ZendeskApi_v2.Models.Shared.System類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。