Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
 public void UpdateBroadcast(CfBroadcastRequest updateBroadcast)
 {
     BroadcastService.UpdateBroadcast(new BroadcastRequest(updateBroadcast.RequestId, BroadcastMapper.ToSoapBroadcast(updateBroadcast.Broadcast)));
 }
Ejemplo n.º 4
0
 public long CreateBroadcast(CfBroadcastRequest createBroadcast)
 {
     return(BroadcastService.CreateBroadcast(new BroadcastRequest(createBroadcast.RequestId, BroadcastMapper.ToSoapBroadcast(createBroadcast.Broadcast))));
 }