public long CreateBroadcast(CfBroadcastRequest createBroadcast) { var broadcastRequest = new BroadcastRequest(createBroadcast.RequestId, BroadcastMapper.ToSoapBroadcast(createBroadcast.Broadcast)); var resourcerReference = BaseRequest <ResourceReference>(HttpMethod.Post, broadcastRequest, new CallfireRestRoute <Broadcast>()); return(resourcerReference.Id); }
public void UpdateBroadcast(CfBroadcastRequest updateBroadcast) { var broadcast = updateBroadcast.Broadcast; if (broadcast == null) { return; } var broadcastRequest = new BroadcastRequest(updateBroadcast.RequestId, BroadcastMapper.ToSoapBroadcast(broadcast)); BaseRequest <string>(HttpMethod.Put, broadcastRequest, new CallfireRestRoute <Broadcast>(broadcast.Id)); }
public void UpdateBroadcast(CfBroadcastRequest updateBroadcast) { BroadcastService.UpdateBroadcast(new BroadcastRequest(updateBroadcast.RequestId, BroadcastMapper.ToSoapBroadcast(updateBroadcast.Broadcast))); }
public long CreateBroadcast(CfBroadcastRequest createBroadcast) { return(BroadcastService.CreateBroadcast(new BroadcastRequest(createBroadcast.RequestId, BroadcastMapper.ToSoapBroadcast(createBroadcast.Broadcast)))); }