public Instance(ServiceAuth auth) { Domain = auth.Domain; Console.WriteLine("Connecting to Google..."); Console.WriteLine("Getting Authorization..."); if (auth.ServiceUser.IsNullOrEmpty()) { ServiceInstance(auth.AccountId, auth.CertPath); } else { ServiceInstance(auth.AccountId, auth.CertPath, auth.ServiceUser); } }
public static Instance ServiceAccount(ServiceAuth auth) { return new Instance(auth); }