/// <summary> /// Creates a new instance of the PriceList class with an already existing <typeparamref name="Google.GData.Spreadsheets.SpreadsheetsService" /> object. /// </summary> /// <param name="service">The <typeparamref name="Google.GData.Spreadsheets.SpreadsheetsService" /> object with which the instance should be created.</param> /// <exception cref="System.ArgumentException">The service doesn't provide any authentication</exception> public PriceList(SpreadsheetsService service) { this.helper = new SpreadsheetHelper(service); }
/// <summary> /// Creates a new instance of the PriceList class with a username and a password to login. /// </summary> /// <param name="username">The username which should be used to login.</param> /// <param name="password">The password which should be used to login.</param> public PriceList(string username, string password) { this.helper = new SpreadsheetHelper(username, password); password = null; }