Пример #1
0
 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);
 }
Пример #2
0
        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));
        }
Пример #3
0
 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;
 }
Пример #5
0
 public FakeBandInfo(BandConnectionType connType, string name, BandVersion version = BandVersion.BandTwo)
 {
     _connType = connType;
     _name = name;
     _version = version;
 }