Esempio n. 1
0
        public static SfDeviceClient CreateSfDeviceClient(HwProductKey hwProductKey, string certificatePath)
        {
            SfDeviceClient sfDeviceClient = CreateSfDeviceClient(hwProductKey);

            sfDeviceClient._certificatePath = certificatePath;

            return(sfDeviceClient);
        }
Esempio n. 2
0
        public static HwProductKey CreateHwProductKey(string email, string password)
        {
            HwProductKey hwProductKey = new HwProductKey();

            hwProductKey.email    = email;
            hwProductKey.password = password;

            return(hwProductKey);
        }
Esempio n. 3
0
        public static SfDeviceClient CreateSfDeviceClient(HwProductKey hwProductKey)
        {
            showAppVersion();

            if (hwProductKey == null || hwProductKey.email == null || hwProductKey.password == null)
            {
                throw new ArgumentNullException(nameof(hwProductKey));
            }

            SfDeviceClient sfDeviceClient = new SfDeviceClient(hwProductKey);

            return(sfDeviceClient);
        }
Esempio n. 4
0
 SfDeviceClient(HwProductKey hwProductKey)
 {
     _hwProductKey             = hwProductKey;
     _messageCatalogSchemaList = new List <MessageCatalogSchema>();
 }