com.qiniu.qvs.QvsMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qiniu-java-sdk Show documentation
Show all versions of qiniu-java-sdk Show documentation
Qiniu Cloud Storage SDK for Java
package com.qiniu.qvs;
import com.qiniu.qvs.model.PlayContral;
import com.qiniu.qvs.model.VoiceChat;
import com.qiniu.util.StringMap;
public class QvsMap {
private QvsMap() {
}
public static StringMap getVoiceChatMap(VoiceChat voiceChat) {
StringMap params = new StringMap().putNotNull("isV2", voiceChat.getLatency());
params.put("channels", voiceChat.getChannels());
params.put("version", voiceChat.getVersion());
params.put("transProtocol", voiceChat.getTransProtocol());
return params;
}
public static StringMap getPlayContralMap(PlayContral playContral) {
StringMap params = new StringMap().putNotNull("command", playContral.getCommand());
params.put("range", playContral.getRange());
params.put("scale", playContral.getScale());
return params;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy