public async Task<string> RetrieveInfo(IBandInfo bandInfo, IBandClient client) { Name = bandInfo.Name; ConnectionType = bandInfo.ConnectionType; Firmware = await client.GetFirmwareVersionAsync(); Hardware = await client.GetHardwareVersionAsync(); return string.Format(" Connected to: {0}" + " \n Connection type : {1}" + " \n Firmware : {2} \n Hardware : {3}", Name, ConnectionType, Firmware, Hardware); }
public async Task <string> RetrieveInfo(IBandInfo bandInfo, IBandClient client) { Name = bandInfo.Name; ConnectionType = bandInfo.ConnectionType; Firmware = await client.GetFirmwareVersionAsync(); Hardware = await client.GetHardwareVersionAsync(); return(Format(" Connected to: {0}" + " \n Connection type : {1}" + " \n Firmware : {2} \n Hardware : {3}", Name, ConnectionType, Firmware, Hardware)); }
public FakeBandInfo(BandConnectionType connType, string name, BandVersion version = BandVersion.BandTwo) { _connType = connType; _name = name; _version = version; }
public FakeBandInfo(BandConnectionType connType, string name) { _connType = connType; _name = name; }