/// <summary>
 /// Initializes a new instance of the <see cref="CollinsDictionaryGetEntry"/> class.
 /// </summary>
 /// <param name="account">The instance of the <see cref="Account"/> class to use to store the OAuth 2.0 account
 /// credentials.</param>
 /// <param name="wordId">The word ID of the definition to be retrieved.</param>
 /// <param name="language">Language Enum</param>
 public CollinsDictionaryGetEntry(Account account, string wordId, SupportedLanguage language)
     : base(new Uri(Config.TellOPConfiguration.GetEndpoint("TellOP.API.CollinsDictionaryGetEntry." + language.ToLCID()) + "?entryId=" + Uri.EscapeDataString(wordId)), HttpMethod.Get, account)
 {
 }
Beispiel #2
0
Datei: App.cs Projekt: TellOP/APP
 /// <summary>
 /// Toggle on/off the selected language.
 /// </summary>
 /// <param name="language">Selected language</param>
 /// <param name="status">On/Off switch</param>
 public void ToggleActiveLanguage(SupportedLanguage language, bool status)
 {
     activeLanguages[language] = status;
     this.StoreProperty(language.ToLCID(), status.ToString());
 }
Beispiel #3
0
Datei: App.cs Projekt: TellOP/APP
 /// <summary>
 /// Change the current selected language.
 /// </summary>
 /// <param name="language">Selected language</param>
 public void ChangeSelectedSearchLanguage(SupportedLanguage language)
 {
     App.activeSearchLanguage = language;
     this.StoreProperty("Search", language.ToLCID());
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CollinsDictionary"/> class.
 /// </summary>
 /// <param name="account">The instance of the <see cref="Account"/> class to use to store the OAuth 2.0 account
 /// credentials.</param>
 /// <param name="language">Language for the search</param>
 /// <param name="searchTerm">The word to search for.</param>
 public CollinsDictionary(Account account, string searchTerm, SupportedLanguage language)
     : base(new Uri(Config.TellOPConfiguration.GetEndpoint("TellOP.API.CollinsDictionary." + language.ToLCID()) + "?q=" + Uri.EscapeDataString(searchTerm)), HttpMethod.Get, account)
 {
     this.language = language;
 }