public Device(ConnectRoomRequest req) { this.Id = req.Id.ToString(); this.Status = req.Status; this.DeviceName = req.Id.ToString(); DeviceType = "ConferencePhone"; }
public static void ConnectRoom( [ActivityTrigger] ConnectRoomRequest req, [CosmosDB("devices", "devices", ConnectionStringSetting = "CosmosDbConnectionString", CreateIfNotExists = true)] out Device light, ILogger log) { log.LogInformation($"Connecting phone {req.Id}..."); light = new Device(req); }