gitee.com/larksuite/oapi-sdk-go/v3@v3.0.3/service/vc/v1/event.go (about)

     1  // Package vc code generated by oapi sdk gen
     2  /*
     3   * MIT License
     4   *
     5   * Copyright (c) 2022 Lark Technologies Pte. Ltd.
     6   *
     7   * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
     8   *
     9   * The above copyright notice and this permission notice, shall be included in all copies or substantial portions of the Software.
    10   *
    11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    12   */
    13  
    14  package larkvc
    15  
    16  import (
    17  	"context"
    18  )
    19  
    20  // 消息处理器定义
    21  type P2MeetingJoinMeetingV1Handler struct {
    22  	handler func(context.Context, *P2MeetingJoinMeetingV1) error
    23  }
    24  
    25  func NewP2MeetingJoinMeetingV1Handler(handler func(context.Context, *P2MeetingJoinMeetingV1) error) *P2MeetingJoinMeetingV1Handler {
    26  	h := &P2MeetingJoinMeetingV1Handler{handler: handler}
    27  	return h
    28  }
    29  
    30  // 返回事件的消息体的实例,用于反序列化用
    31  func (h *P2MeetingJoinMeetingV1Handler) Event() interface{} {
    32  	return &P2MeetingJoinMeetingV1{}
    33  }
    34  
    35  // 回调开发者注册的handle
    36  func (h *P2MeetingJoinMeetingV1Handler) Handle(ctx context.Context, event interface{}) error {
    37  	return h.handler(ctx, event.(*P2MeetingJoinMeetingV1))
    38  }
    39  
    40  // 消息处理器定义
    41  type P2MeetingLeaveMeetingV1Handler struct {
    42  	handler func(context.Context, *P2MeetingLeaveMeetingV1) error
    43  }
    44  
    45  func NewP2MeetingLeaveMeetingV1Handler(handler func(context.Context, *P2MeetingLeaveMeetingV1) error) *P2MeetingLeaveMeetingV1Handler {
    46  	h := &P2MeetingLeaveMeetingV1Handler{handler: handler}
    47  	return h
    48  }
    49  
    50  // 返回事件的消息体的实例,用于反序列化用
    51  func (h *P2MeetingLeaveMeetingV1Handler) Event() interface{} {
    52  	return &P2MeetingLeaveMeetingV1{}
    53  }
    54  
    55  // 回调开发者注册的handle
    56  func (h *P2MeetingLeaveMeetingV1Handler) Handle(ctx context.Context, event interface{}) error {
    57  	return h.handler(ctx, event.(*P2MeetingLeaveMeetingV1))
    58  }
    59  
    60  // 消息处理器定义
    61  type P2MeetingEndedV1Handler struct {
    62  	handler func(context.Context, *P2MeetingEndedV1) error
    63  }
    64  
    65  func NewP2MeetingEndedV1Handler(handler func(context.Context, *P2MeetingEndedV1) error) *P2MeetingEndedV1Handler {
    66  	h := &P2MeetingEndedV1Handler{handler: handler}
    67  	return h
    68  }
    69  
    70  // 返回事件的消息体的实例,用于反序列化用
    71  func (h *P2MeetingEndedV1Handler) Event() interface{} {
    72  	return &P2MeetingEndedV1{}
    73  }
    74  
    75  // 回调开发者注册的handle
    76  func (h *P2MeetingEndedV1Handler) Handle(ctx context.Context, event interface{}) error {
    77  	return h.handler(ctx, event.(*P2MeetingEndedV1))
    78  }
    79  
    80  // 消息处理器定义
    81  type P2MeetingStartedV1Handler struct {
    82  	handler func(context.Context, *P2MeetingStartedV1) error
    83  }
    84  
    85  func NewP2MeetingStartedV1Handler(handler func(context.Context, *P2MeetingStartedV1) error) *P2MeetingStartedV1Handler {
    86  	h := &P2MeetingStartedV1Handler{handler: handler}
    87  	return h
    88  }
    89  
    90  // 返回事件的消息体的实例,用于反序列化用
    91  func (h *P2MeetingStartedV1Handler) Event() interface{} {
    92  	return &P2MeetingStartedV1{}
    93  }
    94  
    95  // 回调开发者注册的handle
    96  func (h *P2MeetingStartedV1Handler) Handle(ctx context.Context, event interface{}) error {
    97  	return h.handler(ctx, event.(*P2MeetingStartedV1))
    98  }
    99  
   100  // 消息处理器定义
   101  type P2MeetingRecordingEndedV1Handler struct {
   102  	handler func(context.Context, *P2MeetingRecordingEndedV1) error
   103  }
   104  
   105  func NewP2MeetingRecordingEndedV1Handler(handler func(context.Context, *P2MeetingRecordingEndedV1) error) *P2MeetingRecordingEndedV1Handler {
   106  	h := &P2MeetingRecordingEndedV1Handler{handler: handler}
   107  	return h
   108  }
   109  
   110  // 返回事件的消息体的实例,用于反序列化用
   111  func (h *P2MeetingRecordingEndedV1Handler) Event() interface{} {
   112  	return &P2MeetingRecordingEndedV1{}
   113  }
   114  
   115  // 回调开发者注册的handle
   116  func (h *P2MeetingRecordingEndedV1Handler) Handle(ctx context.Context, event interface{}) error {
   117  	return h.handler(ctx, event.(*P2MeetingRecordingEndedV1))
   118  }
   119  
   120  // 消息处理器定义
   121  type P2MeetingRecordingReadyV1Handler struct {
   122  	handler func(context.Context, *P2MeetingRecordingReadyV1) error
   123  }
   124  
   125  func NewP2MeetingRecordingReadyV1Handler(handler func(context.Context, *P2MeetingRecordingReadyV1) error) *P2MeetingRecordingReadyV1Handler {
   126  	h := &P2MeetingRecordingReadyV1Handler{handler: handler}
   127  	return h
   128  }
   129  
   130  // 返回事件的消息体的实例,用于反序列化用
   131  func (h *P2MeetingRecordingReadyV1Handler) Event() interface{} {
   132  	return &P2MeetingRecordingReadyV1{}
   133  }
   134  
   135  // 回调开发者注册的handle
   136  func (h *P2MeetingRecordingReadyV1Handler) Handle(ctx context.Context, event interface{}) error {
   137  	return h.handler(ctx, event.(*P2MeetingRecordingReadyV1))
   138  }
   139  
   140  // 消息处理器定义
   141  type P2MeetingRecordingStartedV1Handler struct {
   142  	handler func(context.Context, *P2MeetingRecordingStartedV1) error
   143  }
   144  
   145  func NewP2MeetingRecordingStartedV1Handler(handler func(context.Context, *P2MeetingRecordingStartedV1) error) *P2MeetingRecordingStartedV1Handler {
   146  	h := &P2MeetingRecordingStartedV1Handler{handler: handler}
   147  	return h
   148  }
   149  
   150  // 返回事件的消息体的实例,用于反序列化用
   151  func (h *P2MeetingRecordingStartedV1Handler) Event() interface{} {
   152  	return &P2MeetingRecordingStartedV1{}
   153  }
   154  
   155  // 回调开发者注册的handle
   156  func (h *P2MeetingRecordingStartedV1Handler) Handle(ctx context.Context, event interface{}) error {
   157  	return h.handler(ctx, event.(*P2MeetingRecordingStartedV1))
   158  }
   159  
   160  // 消息处理器定义
   161  type P2MeetingShareEndedV1Handler struct {
   162  	handler func(context.Context, *P2MeetingShareEndedV1) error
   163  }
   164  
   165  func NewP2MeetingShareEndedV1Handler(handler func(context.Context, *P2MeetingShareEndedV1) error) *P2MeetingShareEndedV1Handler {
   166  	h := &P2MeetingShareEndedV1Handler{handler: handler}
   167  	return h
   168  }
   169  
   170  // 返回事件的消息体的实例,用于反序列化用
   171  func (h *P2MeetingShareEndedV1Handler) Event() interface{} {
   172  	return &P2MeetingShareEndedV1{}
   173  }
   174  
   175  // 回调开发者注册的handle
   176  func (h *P2MeetingShareEndedV1Handler) Handle(ctx context.Context, event interface{}) error {
   177  	return h.handler(ctx, event.(*P2MeetingShareEndedV1))
   178  }
   179  
   180  // 消息处理器定义
   181  type P2MeetingShareStartedV1Handler struct {
   182  	handler func(context.Context, *P2MeetingShareStartedV1) error
   183  }
   184  
   185  func NewP2MeetingShareStartedV1Handler(handler func(context.Context, *P2MeetingShareStartedV1) error) *P2MeetingShareStartedV1Handler {
   186  	h := &P2MeetingShareStartedV1Handler{handler: handler}
   187  	return h
   188  }
   189  
   190  // 返回事件的消息体的实例,用于反序列化用
   191  func (h *P2MeetingShareStartedV1Handler) Event() interface{} {
   192  	return &P2MeetingShareStartedV1{}
   193  }
   194  
   195  // 回调开发者注册的handle
   196  func (h *P2MeetingShareStartedV1Handler) Handle(ctx context.Context, event interface{}) error {
   197  	return h.handler(ctx, event.(*P2MeetingShareStartedV1))
   198  }