/// <summary> /// 启动音乐广播任务 /// </summary> /// <param name="masProtocol"></param> /// <returns></returns> public static RpcResponse startPaMusicTask(MasProtocol masProtocol) { StartPaMusicTaskRequest request = masProtocol.Deserialize <StartPaMusicTaskRequest>(); if (request == null) { return(null); } StartPaMusicTaskResponse response = BroadCastControllerProxy.broadCastControllerProxy.startPaMusicTask(request); return(RpcResponse.Response <StartPaMusicTaskResponse>(response)); }
/// <summary> /// 启动音乐广播任务 /// </summary> /// <param name="request"></param> /// <returns></returns> public StartPaMusicTaskResponse startPaMusicTask(StartPaMusicTaskRequest request) { var responseStr = HttpClientHelper.Post(Webapi + "/api/REST-API/startPaMusicTask.do?accessToken=" + Token, JSONHelper.ToJSONString(request)); return(JSONHelper.ParseJSONString <StartPaMusicTaskResponse>(responseStr)); }