• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Shared.System类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ZendeskApi_v2.Models.Shared.System的典型用法代码示例。如果您正苦于以下问题:C# System类的具体用法?C# System怎么用?C# System使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



System类属于ZendeskApi_v2.Models.Shared命名空间,在下文中一共展示了System类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: CreateUser

 public IndividualUserResponse CreateUser(User user)
 {
     var body = new { user = user };
     return GenericPost<IndividualUserResponse>("users.json", body);
 }
开发者ID:ThiagoMatuchaki,项目名称:ZendeskApi_v2,代码行数:5,代码来源:Users.cs


示例17: BulkCreateUsers

 public JobStatusResponse BulkCreateUsers(IEnumerable<User> users)
 {
     var body = new {users = users};
     return GenericPost<JobStatusResponse>("users/create_many.json", body);
 }
开发者ID:ThiagoMatuchaki,项目名称:ZendeskApi_v2,代码行数:5,代码来源:Users.cs


示例18: CreateTicketAsync

 public async Task<IndividualTicketResponse> CreateTicketAsync(Ticket ticket)
 {
     var body = new {ticket};
     return await GenericPostAsync<IndividualTicketResponse>(_tickets + ".json", body);
 }
开发者ID:pmaltsev,项目名称:ZendeskApi_v2,代码行数:5,代码来源:Tickets.cs


示例19: UpdateUser

 public IndividualUserResponse UpdateUser(User user)
 {
     var body = new { user = user };
     return GenericPut<IndividualUserResponse>(string.Format("users/{0}.json", user.Id), body);
 }
开发者ID:ThiagoMatuchaki,项目名称:ZendeskApi_v2,代码行数:5,代码来源:Users.cs


示例20: UpdateTicketAsync

        /// <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 async Task<IndividualTicketResponse> UpdateTicketAsync(Ticket ticket, Comment comment=null)
        {
            if (comment != null)
                ticket.Comment = comment;
            var body = new { ticket };

            return await GenericPutAsync<IndividualTicketResponse>(string.Format("{0}/{1}.json", _tickets, ticket.Id), body);    
        }
开发者ID:pmaltsev,项目名称:ZendeskApi_v2,代码行数:14,代码来源:Tickets.cs



注:本文中的ZendeskApi_v2.Models.Shared.System类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Zenject.DiContainer类代码示例发布时间:2022-05-26
下一篇:
C# Geometry.Vector2F类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap