All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.larksuite.oapi.service.vc.v1.VcService Maven / Gradle / Ivy

Go to download

Larksuite open platform facilitates the integration of enterprise applications and larksuite, making collaboration and management more efficient

There is a newer version: 1.0.18-rc8
Show newest version
// Code generated by lark suite oapi sdk gen
package com.larksuite.oapi.service.vc.v1;

import com.larksuite.oapi.core.api.AccessTokenType;
import com.larksuite.oapi.core.api.Api;
import com.larksuite.oapi.core.api.ReqCaller;
import com.larksuite.oapi.core.api.request.*;
import com.larksuite.oapi.core.api.response.*;
import com.larksuite.oapi.core.Config;
import com.larksuite.oapi.core.event.Event;
import com.larksuite.oapi.core.event.IHandler;
import com.larksuite.oapi.service.vc.v1.model.*;
import java.util.Map;
import java.util.HashMap;
import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;

public class VcService {

    private final Config config;
    private final MeetingRecordings meetingRecordings;
    private final Meetings meetings;
    private final Reports reports;
    private final RoomConfigs roomConfigs;
    private final Reserves reserves;

    public VcService(Config config) {
        this.config = config;
        this.meetingRecordings = new MeetingRecordings(this);
        this.meetings = new Meetings(this);
        this.reports = new Reports(this);
        this.roomConfigs = new RoomConfigs(this);
        this.reserves = new Reserves(this);
    }

    public MeetingRecordings getMeetingRecordings() {
        return meetingRecordings;
    }

    public static class MeetingRecordings {

        private final VcService service;

        public MeetingRecordings(VcService service) {
            this.service = service;
        }
    
        public MeetingRecordingGetReqCall get(RequestOptFn... optFns) {
            return new MeetingRecordingGetReqCall(this, optFns);
        }
    
        public MeetingRecordingStopReqCall stop(RequestOptFn... optFns) {
            return new MeetingRecordingStopReqCall(this, optFns);
        }
    
        public MeetingRecordingSetPermissionReqCall setPermission(MeetingRecordingSetPermissionReqBody body, RequestOptFn... optFns) {
            return new MeetingRecordingSetPermissionReqCall(this, body, optFns);
        }
    
        public MeetingRecordingStartReqCall start(MeetingRecordingStartReqBody body, RequestOptFn... optFns) {
            return new MeetingRecordingStartReqCall(this, body, optFns);
        }
    
    }
    public static class MeetingRecordingGetReqCall extends ReqCaller {
        private final MeetingRecordings meetingRecordings;
        
        private final Map pathParams;
        private final List optFns;
        private MeetingRecordingGetResult result;
        
        private MeetingRecordingGetReqCall(MeetingRecordings meetingRecordings, RequestOptFn... optFns) {
        
            this.pathParams = new HashMap<>();
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new MeetingRecordingGetResult();
            this.meetingRecordings = meetingRecordings;
        }
        
        public MeetingRecordingGetReqCall setMeetingId(Long meetingId){
            this.pathParams.put("meeting_id", meetingId);
            return this;
        }

        @Override
        public Response execute() throws Exception {
            this.optFns.add(Request.setPathParams(this.pathParams));
            Request request = Request.newRequest("vc/v1/meetings/:meeting_id/recording", "GET",
                    new AccessTokenType[]{AccessTokenType.User},
                    null, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.meetingRecordings.service.config, request);
        }
    }
    public static class MeetingRecordingStopReqCall extends ReqCaller {
        private final MeetingRecordings meetingRecordings;
        
        private final Map pathParams;
        private final List optFns;
        private EmptyData result;
        
        private MeetingRecordingStopReqCall(MeetingRecordings meetingRecordings, RequestOptFn... optFns) {
        
            this.pathParams = new HashMap<>();
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new EmptyData();
            this.meetingRecordings = meetingRecordings;
        }
        
        public MeetingRecordingStopReqCall setMeetingId(Long meetingId){
            this.pathParams.put("meeting_id", meetingId);
            return this;
        }

        @Override
        public Response execute() throws Exception {
            this.optFns.add(Request.setPathParams(this.pathParams));
            Request request = Request.newRequest("vc/v1/meetings/:meeting_id/recording/stop", "PATCH",
                    new AccessTokenType[]{AccessTokenType.User},
                    null, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.meetingRecordings.service.config, request);
        }
    }
    public static class MeetingRecordingSetPermissionReqCall extends ReqCaller {
        private final MeetingRecordings meetingRecordings;
        
        private final MeetingRecordingSetPermissionReqBody body;
        private final Map pathParams;
        private final Map queryParams;
        private final List optFns;
        private EmptyData result;
        
        private MeetingRecordingSetPermissionReqCall(MeetingRecordings meetingRecordings, MeetingRecordingSetPermissionReqBody body, RequestOptFn... optFns) {
        
            this.body = body;
            this.pathParams = new HashMap<>();
            this.queryParams = new HashMap<>();
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new EmptyData();
            this.meetingRecordings = meetingRecordings;
        }
        
        public MeetingRecordingSetPermissionReqCall setMeetingId(Long meetingId){
            this.pathParams.put("meeting_id", meetingId);
            return this;
        }
        
        public MeetingRecordingSetPermissionReqCall setUserIdType(String userIdType){
            this.queryParams.put("user_id_type", userIdType);
            return this;
        }

        @Override
        public Response execute() throws Exception {
            this.optFns.add(Request.setPathParams(this.pathParams));
            this.optFns.add(Request.setQueryParams(this.queryParams));
            Request request = Request.newRequest("vc/v1/meetings/:meeting_id/recording/set_permission", "PATCH",
                    new AccessTokenType[]{AccessTokenType.User},
                    this.body, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.meetingRecordings.service.config, request);
        }
    }
    public static class MeetingRecordingStartReqCall extends ReqCaller {
        private final MeetingRecordings meetingRecordings;
        
        private final MeetingRecordingStartReqBody body;
        private final Map pathParams;
        private final List optFns;
        private EmptyData result;
        
        private MeetingRecordingStartReqCall(MeetingRecordings meetingRecordings, MeetingRecordingStartReqBody body, RequestOptFn... optFns) {
        
            this.body = body;
            this.pathParams = new HashMap<>();
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new EmptyData();
            this.meetingRecordings = meetingRecordings;
        }
        
        public MeetingRecordingStartReqCall setMeetingId(Long meetingId){
            this.pathParams.put("meeting_id", meetingId);
            return this;
        }

        @Override
        public Response execute() throws Exception {
            this.optFns.add(Request.setPathParams(this.pathParams));
            Request request = Request.newRequest("vc/v1/meetings/:meeting_id/recording/start", "PATCH",
                    new AccessTokenType[]{AccessTokenType.User},
                    this.body, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.meetingRecordings.service.config, request);
        }
    }

    public Meetings getMeetings() {
        return meetings;
    }

    public static class Meetings {

        private final VcService service;

        public Meetings(VcService service) {
            this.service = service;
        }
    
        public MeetingInviteReqCall invite(MeetingInviteReqBody body, RequestOptFn... optFns) {
            return new MeetingInviteReqCall(this, body, optFns);
        }
    
        public MeetingListReqCall list(RequestOptFn... optFns) {
            return new MeetingListReqCall(this, optFns);
        }
    
        public MeetingSetHostReqCall setHost(MeetingSetHostReqBody body, RequestOptFn... optFns) {
            return new MeetingSetHostReqCall(this, body, optFns);
        }
    
        public MeetingEndReqCall end(RequestOptFn... optFns) {
            return new MeetingEndReqCall(this, optFns);
        }
    
        public MeetingGetReqCall get(RequestOptFn... optFns) {
            return new MeetingGetReqCall(this, optFns);
        }
    
    }
    public static class MeetingInviteReqCall extends ReqCaller {
        private final Meetings meetings;
        
        private final MeetingInviteReqBody body;
        private final Map pathParams;
        private final Map queryParams;
        private final List optFns;
        private MeetingInviteResult result;
        
        private MeetingInviteReqCall(Meetings meetings, MeetingInviteReqBody body, RequestOptFn... optFns) {
        
            this.body = body;
            this.pathParams = new HashMap<>();
            this.queryParams = new HashMap<>();
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new MeetingInviteResult();
            this.meetings = meetings;
        }
        
        public MeetingInviteReqCall setMeetingId(Long meetingId){
            this.pathParams.put("meeting_id", meetingId);
            return this;
        }
        
        public MeetingInviteReqCall setUserIdType(String userIdType){
            this.queryParams.put("user_id_type", userIdType);
            return this;
        }

        @Override
        public Response execute() throws Exception {
            this.optFns.add(Request.setPathParams(this.pathParams));
            this.optFns.add(Request.setQueryParams(this.queryParams));
            Request request = Request.newRequest("vc/v1/meetings/:meeting_id/invite", "PATCH",
                    new AccessTokenType[]{AccessTokenType.User},
                    this.body, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.meetings.service.config, request);
        }
    }
    public static class MeetingListReqCall extends ReqCaller {
        private final Meetings meetings;
        
        private final Map queryParams;
        private final List optFns;
        private MeetingListResult result;
        
        private MeetingListReqCall(Meetings meetings, RequestOptFn... optFns) {
        
            this.queryParams = new HashMap<>();
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new MeetingListResult();
            this.meetings = meetings;
        }
        
        
        public MeetingListReqCall setRoomId(Long roomId){
            this.queryParams.put("room_id", roomId);
            return this;
        }
        public MeetingListReqCall setStartTime(Long startTime){
            this.queryParams.put("start_time", startTime);
            return this;
        }
        public MeetingListReqCall setEndTime(Long endTime){
            this.queryParams.put("end_time", endTime);
            return this;
        }
        public MeetingListReqCall setStatus(Integer status){
            this.queryParams.put("status", status);
            return this;
        }
        public MeetingListReqCall setPageToken(String pageToken){
            this.queryParams.put("page_token", pageToken);
            return this;
        }
        public MeetingListReqCall setPageSize(Integer pageSize){
            this.queryParams.put("page_size", pageSize);
            return this;
        }

        @Override
        public Response execute() throws Exception {
            this.optFns.add(Request.setQueryParams(this.queryParams));
            Request request = Request.newRequest("vc/v1/meetings", "GET",
                    new AccessTokenType[]{AccessTokenType.User, AccessTokenType.Tenant},
                    null, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.meetings.service.config, request);
        }
    }
    public static class MeetingSetHostReqCall extends ReqCaller {
        private final Meetings meetings;
        
        private final MeetingSetHostReqBody body;
        private final Map pathParams;
        private final Map queryParams;
        private final List optFns;
        private MeetingSetHostResult result;
        
        private MeetingSetHostReqCall(Meetings meetings, MeetingSetHostReqBody body, RequestOptFn... optFns) {
        
            this.body = body;
            this.pathParams = new HashMap<>();
            this.queryParams = new HashMap<>();
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new MeetingSetHostResult();
            this.meetings = meetings;
        }
        
        public MeetingSetHostReqCall setMeetingId(Long meetingId){
            this.pathParams.put("meeting_id", meetingId);
            return this;
        }
        
        public MeetingSetHostReqCall setUserIdType(String userIdType){
            this.queryParams.put("user_id_type", userIdType);
            return this;
        }

        @Override
        public Response execute() throws Exception {
            this.optFns.add(Request.setPathParams(this.pathParams));
            this.optFns.add(Request.setQueryParams(this.queryParams));
            Request request = Request.newRequest("vc/v1/meetings/:meeting_id/set_host", "PATCH",
                    new AccessTokenType[]{AccessTokenType.User},
                    this.body, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.meetings.service.config, request);
        }
    }
    public static class MeetingEndReqCall extends ReqCaller {
        private final Meetings meetings;
        
        private final Map pathParams;
        private final List optFns;
        private EmptyData result;
        
        private MeetingEndReqCall(Meetings meetings, RequestOptFn... optFns) {
        
            this.pathParams = new HashMap<>();
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new EmptyData();
            this.meetings = meetings;
        }
        
        public MeetingEndReqCall setMeetingId(Long meetingId){
            this.pathParams.put("meeting_id", meetingId);
            return this;
        }

        @Override
        public Response execute() throws Exception {
            this.optFns.add(Request.setPathParams(this.pathParams));
            Request request = Request.newRequest("vc/v1/meetings/:meeting_id/end", "PATCH",
                    new AccessTokenType[]{AccessTokenType.User},
                    null, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.meetings.service.config, request);
        }
    }
    public static class MeetingGetReqCall extends ReqCaller {
        private final Meetings meetings;
        
        private final Map pathParams;
        private final Map queryParams;
        private final List optFns;
        private MeetingGetResult result;
        
        private MeetingGetReqCall(Meetings meetings, RequestOptFn... optFns) {
        
            this.pathParams = new HashMap<>();
            this.queryParams = new HashMap<>();
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new MeetingGetResult();
            this.meetings = meetings;
        }
        
        public MeetingGetReqCall setMeetingId(Long meetingId){
            this.pathParams.put("meeting_id", meetingId);
            return this;
        }
        
        public MeetingGetReqCall setWithParticipants(Boolean withParticipants){
            this.queryParams.put("with_participants", withParticipants);
            return this;
        }
        public MeetingGetReqCall setWithMeetingAbility(Boolean withMeetingAbility){
            this.queryParams.put("with_meeting_ability", withMeetingAbility);
            return this;
        }
        public MeetingGetReqCall setUserIdType(String userIdType){
            this.queryParams.put("user_id_type", userIdType);
            return this;
        }

        @Override
        public Response execute() throws Exception {
            this.optFns.add(Request.setPathParams(this.pathParams));
            this.optFns.add(Request.setQueryParams(this.queryParams));
            Request request = Request.newRequest("vc/v1/meetings/:meeting_id", "GET",
                    new AccessTokenType[]{AccessTokenType.User, AccessTokenType.Tenant},
                    null, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.meetings.service.config, request);
        }
    }

    public Reports getReports() {
        return reports;
    }

    public static class Reports {

        private final VcService service;

        public Reports(VcService service) {
            this.service = service;
        }
    
        public ReportGetTopUserReqCall getTopUser(RequestOptFn... optFns) {
            return new ReportGetTopUserReqCall(this, optFns);
        }
    
        public ReportGetDailyReqCall getDaily(RequestOptFn... optFns) {
            return new ReportGetDailyReqCall(this, optFns);
        }
    
    }
    public static class ReportGetTopUserReqCall extends ReqCaller {
        private final Reports reports;
        
        private final Map queryParams;
        private final List optFns;
        private ReportGetTopUserResult result;
        
        private ReportGetTopUserReqCall(Reports reports, RequestOptFn... optFns) {
        
            this.queryParams = new HashMap<>();
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new ReportGetTopUserResult();
            this.reports = reports;
        }
        
        
        public ReportGetTopUserReqCall setStartTime(Long startTime){
            this.queryParams.put("start_time", startTime);
            return this;
        }
        public ReportGetTopUserReqCall setEndTime(Long endTime){
            this.queryParams.put("end_time", endTime);
            return this;
        }
        public ReportGetTopUserReqCall setLimit(Integer limit){
            this.queryParams.put("limit", limit);
            return this;
        }
        public ReportGetTopUserReqCall setOrderBy(Integer orderBy){
            this.queryParams.put("order_by", orderBy);
            return this;
        }

        @Override
        public Response execute() throws Exception {
            this.optFns.add(Request.setQueryParams(this.queryParams));
            Request request = Request.newRequest("vc/v1/reports/get_top_user", "GET",
                    new AccessTokenType[]{AccessTokenType.Tenant},
                    null, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.reports.service.config, request);
        }
    }
    public static class ReportGetDailyReqCall extends ReqCaller {
        private final Reports reports;
        
        private final Map queryParams;
        private final List optFns;
        private ReportGetDailyResult result;
        
        private ReportGetDailyReqCall(Reports reports, RequestOptFn... optFns) {
        
            this.queryParams = new HashMap<>();
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new ReportGetDailyResult();
            this.reports = reports;
        }
        
        
        public ReportGetDailyReqCall setStartTime(Long startTime){
            this.queryParams.put("start_time", startTime);
            return this;
        }
        public ReportGetDailyReqCall setEndTime(Long endTime){
            this.queryParams.put("end_time", endTime);
            return this;
        }

        @Override
        public Response execute() throws Exception {
            this.optFns.add(Request.setQueryParams(this.queryParams));
            Request request = Request.newRequest("vc/v1/reports/get_daily", "GET",
                    new AccessTokenType[]{AccessTokenType.Tenant},
                    null, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.reports.service.config, request);
        }
    }

    public RoomConfigs getRoomConfigs() {
        return roomConfigs;
    }

    public static class RoomConfigs {

        private final VcService service;

        public RoomConfigs(VcService service) {
            this.service = service;
        }
    
        public RoomConfigQueryReqCall query(RequestOptFn... optFns) {
            return new RoomConfigQueryReqCall(this, optFns);
        }
    
        public RoomConfigSetReqCall set(RoomConfigSetReqBody body, RequestOptFn... optFns) {
            return new RoomConfigSetReqCall(this, body, optFns);
        }
    
    }
    public static class RoomConfigQueryReqCall extends ReqCaller {
        private final RoomConfigs roomConfigs;
        
        private final Map queryParams;
        private final List optFns;
        private RoomConfig result;
        
        private RoomConfigQueryReqCall(RoomConfigs roomConfigs, RequestOptFn... optFns) {
        
            this.queryParams = new HashMap<>();
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new RoomConfig();
            this.roomConfigs = roomConfigs;
        }
        
        
        public RoomConfigQueryReqCall setScope(Integer scope){
            this.queryParams.put("scope", scope);
            return this;
        }
        public RoomConfigQueryReqCall setCountryId(Long countryId){
            this.queryParams.put("country_id", countryId);
            return this;
        }
        public RoomConfigQueryReqCall setDistrictId(Long districtId){
            this.queryParams.put("district_id", districtId);
            return this;
        }
        public RoomConfigQueryReqCall setBuildingId(Long buildingId){
            this.queryParams.put("building_id", buildingId);
            return this;
        }
        public RoomConfigQueryReqCall setFloorName(String floorName){
            this.queryParams.put("floor_name", floorName);
            return this;
        }
        public RoomConfigQueryReqCall setRoomId(Long roomId){
            this.queryParams.put("room_id", roomId);
            return this;
        }

        @Override
        public Response execute() throws Exception {
            this.optFns.add(Request.setQueryParams(this.queryParams));
            Request request = Request.newRequest("vc/v1/room_configs/query", "GET",
                    new AccessTokenType[]{AccessTokenType.Tenant},
                    null, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.roomConfigs.service.config, request);
        }
    }
    public static class RoomConfigSetReqCall extends ReqCaller {
        private final RoomConfigs roomConfigs;
        
        private final RoomConfigSetReqBody body;
        private final List optFns;
        private EmptyData result;
        
        private RoomConfigSetReqCall(RoomConfigs roomConfigs, RoomConfigSetReqBody body, RequestOptFn... optFns) {
        
            this.body = body;
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new EmptyData();
            this.roomConfigs = roomConfigs;
        }
        

        @Override
        public Response execute() throws Exception {
            Request request = Request.newRequest("vc/v1/room_configs/set", "POST",
                    new AccessTokenType[]{AccessTokenType.Tenant},
                    this.body, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.roomConfigs.service.config, request);
        }
    }

    public Reserves getReserves() {
        return reserves;
    }

    public static class Reserves {

        private final VcService service;

        public Reserves(VcService service) {
            this.service = service;
        }
    
        public ReserveUpdateReqCall update(ReserveUpdateReqBody body, RequestOptFn... optFns) {
            return new ReserveUpdateReqCall(this, body, optFns);
        }
    
        public ReserveApplyReqCall apply(ReserveApplyReqBody body, RequestOptFn... optFns) {
            return new ReserveApplyReqCall(this, body, optFns);
        }
    
        public ReserveGetReqCall get(RequestOptFn... optFns) {
            return new ReserveGetReqCall(this, optFns);
        }
    
        public ReserveGetActiveMeetingReqCall getActiveMeeting(RequestOptFn... optFns) {
            return new ReserveGetActiveMeetingReqCall(this, optFns);
        }
    
        public ReserveDeleteReqCall delete(RequestOptFn... optFns) {
            return new ReserveDeleteReqCall(this, optFns);
        }
    
    }
    public static class ReserveUpdateReqCall extends ReqCaller {
        private final Reserves reserves;
        
        private final ReserveUpdateReqBody body;
        private final Map pathParams;
        private final Map queryParams;
        private final List optFns;
        private ReserveUpdateResult result;
        
        private ReserveUpdateReqCall(Reserves reserves, ReserveUpdateReqBody body, RequestOptFn... optFns) {
        
            this.body = body;
            this.pathParams = new HashMap<>();
            this.queryParams = new HashMap<>();
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new ReserveUpdateResult();
            this.reserves = reserves;
        }
        
        public ReserveUpdateReqCall setReserveId(Long reserveId){
            this.pathParams.put("reserve_id", reserveId);
            return this;
        }
        
        public ReserveUpdateReqCall setUserIdType(String userIdType){
            this.queryParams.put("user_id_type", userIdType);
            return this;
        }

        @Override
        public Response execute() throws Exception {
            this.optFns.add(Request.setPathParams(this.pathParams));
            this.optFns.add(Request.setQueryParams(this.queryParams));
            Request request = Request.newRequest("vc/v1/reserves/:reserve_id", "PUT",
                    new AccessTokenType[]{AccessTokenType.User},
                    this.body, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.reserves.service.config, request);
        }
    }
    public static class ReserveApplyReqCall extends ReqCaller {
        private final Reserves reserves;
        
        private final ReserveApplyReqBody body;
        private final Map queryParams;
        private final List optFns;
        private ReserveApplyResult result;
        
        private ReserveApplyReqCall(Reserves reserves, ReserveApplyReqBody body, RequestOptFn... optFns) {
        
            this.body = body;
            this.queryParams = new HashMap<>();
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new ReserveApplyResult();
            this.reserves = reserves;
        }
        
        
        public ReserveApplyReqCall setUserIdType(String userIdType){
            this.queryParams.put("user_id_type", userIdType);
            return this;
        }

        @Override
        public Response execute() throws Exception {
            this.optFns.add(Request.setQueryParams(this.queryParams));
            Request request = Request.newRequest("vc/v1/reserves/apply", "POST",
                    new AccessTokenType[]{AccessTokenType.User},
                    this.body, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.reserves.service.config, request);
        }
    }
    public static class ReserveGetReqCall extends ReqCaller {
        private final Reserves reserves;
        
        private final Map pathParams;
        private final List optFns;
        private ReserveGetResult result;
        
        private ReserveGetReqCall(Reserves reserves, RequestOptFn... optFns) {
        
            this.pathParams = new HashMap<>();
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new ReserveGetResult();
            this.reserves = reserves;
        }
        
        public ReserveGetReqCall setReserveId(Long reserveId){
            this.pathParams.put("reserve_id", reserveId);
            return this;
        }

        @Override
        public Response execute() throws Exception {
            this.optFns.add(Request.setPathParams(this.pathParams));
            Request request = Request.newRequest("vc/v1/reserves/:reserve_id", "GET",
                    new AccessTokenType[]{AccessTokenType.User},
                    null, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.reserves.service.config, request);
        }
    }
    public static class ReserveGetActiveMeetingReqCall extends ReqCaller {
        private final Reserves reserves;
        
        private final Map pathParams;
        private final Map queryParams;
        private final List optFns;
        private ReserveGetActiveMeetingResult result;
        
        private ReserveGetActiveMeetingReqCall(Reserves reserves, RequestOptFn... optFns) {
        
            this.pathParams = new HashMap<>();
            this.queryParams = new HashMap<>();
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new ReserveGetActiveMeetingResult();
            this.reserves = reserves;
        }
        
        public ReserveGetActiveMeetingReqCall setReserveId(Long reserveId){
            this.pathParams.put("reserve_id", reserveId);
            return this;
        }
        
        public ReserveGetActiveMeetingReqCall setWithParticipants(Boolean withParticipants){
            this.queryParams.put("with_participants", withParticipants);
            return this;
        }

        @Override
        public Response execute() throws Exception {
            this.optFns.add(Request.setPathParams(this.pathParams));
            this.optFns.add(Request.setQueryParams(this.queryParams));
            Request request = Request.newRequest("vc/v1/reserves/:reserve_id/get_active_meeting", "GET",
                    new AccessTokenType[]{AccessTokenType.User},
                    null, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.reserves.service.config, request);
        }
    }
    public static class ReserveDeleteReqCall extends ReqCaller {
        private final Reserves reserves;
        
        private final Map pathParams;
        private final List optFns;
        private EmptyData result;
        
        private ReserveDeleteReqCall(Reserves reserves, RequestOptFn... optFns) {
        
            this.pathParams = new HashMap<>();
            this.optFns = new ArrayList<>();
            this.optFns.addAll(Arrays.asList(optFns));
            this.result = new EmptyData();
            this.reserves = reserves;
        }
        
        public ReserveDeleteReqCall setReserveId(Long reserveId){
            this.pathParams.put("reserve_id", reserveId);
            return this;
        }

        @Override
        public Response execute() throws Exception {
            this.optFns.add(Request.setPathParams(this.pathParams));
            Request request = Request.newRequest("vc/v1/reserves/:reserve_id", "DELETE",
                    new AccessTokenType[]{AccessTokenType.User},
                    null, this.result, this.optFns.toArray(new RequestOptFn[]{}));
            return Api.send(this.reserves.service.config, request);
        }
    }
    public void setMeetingLeaveMeetingEventHandler(MeetingLeaveMeetingEventHandler handler) {
        Event.setTypeHandler(this.config, "vc.meeting.leave_meeting_v1", handler);
    }

    public abstract static class MeetingLeaveMeetingEventHandler implements IHandler {
        @Override
        public MeetingLeaveMeetingEvent getEvent() {
            return new MeetingLeaveMeetingEvent();
        }
    }
    public void setMeetingMeetingEndedEventHandler(MeetingMeetingEndedEventHandler handler) {
        Event.setTypeHandler(this.config, "vc.meeting.meeting_ended_v1", handler);
    }

    public abstract static class MeetingMeetingEndedEventHandler implements IHandler {
        @Override
        public MeetingMeetingEndedEvent getEvent() {
            return new MeetingMeetingEndedEvent();
        }
    }
    public void setMeetingMeetingStartedEventHandler(MeetingMeetingStartedEventHandler handler) {
        Event.setTypeHandler(this.config, "vc.meeting.meeting_started_v1", handler);
    }

    public abstract static class MeetingMeetingStartedEventHandler implements IHandler {
        @Override
        public MeetingMeetingStartedEvent getEvent() {
            return new MeetingMeetingStartedEvent();
        }
    }
    public void setMeetingRecordingEndedEventHandler(MeetingRecordingEndedEventHandler handler) {
        Event.setTypeHandler(this.config, "vc.meeting.recording_ended_v1", handler);
    }

    public abstract static class MeetingRecordingEndedEventHandler implements IHandler {
        @Override
        public MeetingRecordingEndedEvent getEvent() {
            return new MeetingRecordingEndedEvent();
        }
    }
    public void setMeetingShareEndedEventHandler(MeetingShareEndedEventHandler handler) {
        Event.setTypeHandler(this.config, "vc.meeting.share_ended_v1", handler);
    }

    public abstract static class MeetingShareEndedEventHandler implements IHandler {
        @Override
        public MeetingShareEndedEvent getEvent() {
            return new MeetingShareEndedEvent();
        }
    }
    public void setMeetingJoinMeetingEventHandler(MeetingJoinMeetingEventHandler handler) {
        Event.setTypeHandler(this.config, "vc.meeting.join_meeting_v1", handler);
    }

    public abstract static class MeetingJoinMeetingEventHandler implements IHandler {
        @Override
        public MeetingJoinMeetingEvent getEvent() {
            return new MeetingJoinMeetingEvent();
        }
    }
    public void setMeetingRecordingStartedEventHandler(MeetingRecordingStartedEventHandler handler) {
        Event.setTypeHandler(this.config, "vc.meeting.recording_started_v1", handler);
    }

    public abstract static class MeetingRecordingStartedEventHandler implements IHandler {
        @Override
        public MeetingRecordingStartedEvent getEvent() {
            return new MeetingRecordingStartedEvent();
        }
    }
    public void setMeetingSendMeetingImEventHandler(MeetingSendMeetingImEventHandler handler) {
        Event.setTypeHandler(this.config, "vc.meeting.send_meeting_im_v1", handler);
    }

    public abstract static class MeetingSendMeetingImEventHandler implements IHandler {
        @Override
        public MeetingSendMeetingImEvent getEvent() {
            return new MeetingSendMeetingImEvent();
        }
    }
    public void setMeetingShareStartedEventHandler(MeetingShareStartedEventHandler handler) {
        Event.setTypeHandler(this.config, "vc.meeting.share_started_v1", handler);
    }

    public abstract static class MeetingShareStartedEventHandler implements IHandler {
        @Override
        public MeetingShareStartedEvent getEvent() {
            return new MeetingShareStartedEvent();
        }
    }
    public void setMeetingRecordingReadyEventHandler(MeetingRecordingReadyEventHandler handler) {
        Event.setTypeHandler(this.config, "vc.meeting.recording_ready_v1", handler);
    }

    public abstract static class MeetingRecordingReadyEventHandler implements IHandler {
        @Override
        public MeetingRecordingReadyEvent getEvent() {
            return new MeetingRecordingReadyEvent();
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy