ecology_maven/weaver/aiyh_quanshi/RequestApi.java

52 lines
1.4 KiB
Java
Raw Normal View History

2021-11-14 15:29:16 +08:00
package weaver.aiyh_quanshi;
import weaver.aiyh_quanshi.entity.QsAccount;
import weaver.aiyh_quanshi.entity.QsConfParty;
import weaver.aiyh_quanshi.entity.QsResponse;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* @author EBU7-dev1-ayh
* @create 2021/9/16 0016 16:04
* qinqiujiekou
*/
public class RequestApi {
public RequestApi(){
String keyPath = Objects.requireNonNull(this.getClass().getResource("")).getPath();
QsAPI.init("6", "configtest.quanshi.com"
, keyPath + "key_store" + File.separator + "mg.client.p12"
, keyPath + "key_store" + File.separator + "server.truststore");
}
/**
*
* @param email
* @param title
* @param length
* @param startTime
* @param list
* @return
*/
public QsResponse createMeting(String email, String title, int length, String startTime, List<QsConfParty> list){
return QsAPI.reservConference(email,title,length,startTime, null, list);
}
public QsResponse cancelConference(String conferenceId, String email){
return QsAPI.cancelConference(conferenceId,email, false,false);
}
public QsResponse getQuanShiInfo(String conferenceId){
return QsAPI.getConferenceInfo(conferenceId);
}
public QsResponse getInfoByEmail(List<String> list){
return QsAPI.getUserIdsByEmails(list);
}
}