예제 #1
0
 public Computer()
 {
     this.Description = new DeviceDesc()
     {
         PS          = new PowerSupply_Germany550(),
         Drives      = new I_SSD_HDD[] { new WD_Blue() },
         Motherboard = new Lenovo_Unknown(null, null),
     };
     this.Description.TotalPrice = totalPrice();
 }
        public AssistantClient(OAuthCredentials oAuthCredentials, AuthenticationConf authenticationConf, AssistantConf assistantConf, DeviceModel deviceModel, DeviceDesc device)
        {
            this.authenticationConf = authenticationConf;
            this.assistantConf      = assistantConf;
            this.deviceModel        = deviceModel;
            this.device             = device;

            googleAuthFlow = new GoogleAuthorizationCodeFlow(new GoogleAuthorizationCodeFlow.Initializer()
            {
                ClientSecrets = new ClientSecrets()
                {
                    ClientId     = authenticationConf.clientId,
                    ClientSecret = authenticationConf.clientSecret,
                }
            });

            UpdateCredentials(oAuthCredentials);
        }
예제 #3
0
 public Computer(DeviceDesc Desc)
 {
     this.Description            = Desc;
     this.Description.TotalPrice = totalPrice();
 }
예제 #4
0
 public static extern ReturnValue Enumerate(int connection, int index, ref DeviceDesc description);
예제 #5
0
 public static extern ReturnValue Enumerate(int connection, int index, ref DeviceDesc description);