public UnifiedResponse.WaterMarkedRender UpdateWaterMarkedRender(UnifiedResponse.WaterMarkedRender renderData) { UnifiedResponse.TWaterMarkedRender myStatus = new UnifiedResponse.TWaterMarkedRender(renderData); var myTable = tableClient.GetTableReference("WaterMarkedRender"); myTable.CreateIfNotExists(); TableOperation InsertOrReplace = TableOperation.InsertOrReplace(myStatus); myTable.Execute(InsertOrReplace); return(renderData); }
public TWaterMarkedRender(WaterMarkedRender Data) { PartitionKey = $"{Data.ParentAssetID}-{Data.EmbebedCodeValue}"; RowKey = Data.RenderName; //Properties EmbebedCodeValue = Data.EmbebedCodeValue; State = Data.State.ToString(); ParentAssetID = Data.ParentAssetID; MP4URL = Data.MP4URL; Details = Data.Details; }
public UnifiedResponse.WaterMarkedRender GetWaterMarkedRender(string ParentAssetID, string EmbebedCodeValue, string RenderName) { UnifiedResponse.WaterMarkedRender x = null; UnifiedResponse.WaterMarkedAssetInfo wai = new UnifiedResponse.WaterMarkedAssetInfo() { AssetID = ParentAssetID, }; TableOperation retrieveOperation = TableOperation.Retrieve <UnifiedResponse.TWaterMarkedRender>($"{ParentAssetID}-{EmbebedCodeValue}", RenderName); TableResult retrievedResult = _WaterMarkRenderTable.Execute(retrieveOperation); if (retrievedResult.Result != null) { x = ((UnifiedResponse.TWaterMarkedRender)retrievedResult.Result).GetWaterMarkedRender(); } return(x); }
public UnifiedResponse.WaterMarkedRender GetWaterMarkedRender(string ParentAssetID, string EmbebedCodeValue, string RenderName) { UnifiedResponse.WaterMarkedRender x = null; UnifiedResponse.WaterMarkedAssetInfo wai = new UnifiedResponse.WaterMarkedAssetInfo() { AssetID = ParentAssetID, }; var myTable = tableClient.GetTableReference(ReferenceNames.WaterMarkedRender); myTable.CreateIfNotExists(); TableOperation retrieveOperation = TableOperation.Retrieve <UnifiedResponse.TWaterMarkedRender>($"{ParentAssetID}-{EmbebedCodeValue}", RenderName); TableResult retrievedResult = myTable.Execute(retrieveOperation); if (retrievedResult.Result != null) { x = ((UnifiedResponse.TWaterMarkedRender)retrievedResult.Result).GetWaterMarkedRender(); } return(x); }
public async Task <UnifiedResponse.WaterMarkedRender> UpdateWaterMarkedRender(UnifiedResponse.WaterMarkedRender renderData) { UnifiedResponse.TWaterMarkedRender myStatus = new UnifiedResponse.TWaterMarkedRender(renderData); TableOperation InsertOrReplace = TableOperation.InsertOrReplace(myStatus); await _WaterMarkRenderTable.ExecuteAsync(InsertOrReplace); return(renderData); }