Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
imp - Made lists immutable by making them arrays
Browse files Browse the repository at this point in the history
---

We've made the lists immutable by making them consist of arrays instead of generic lists.

---

Type: imp
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Oct 25, 2023
1 parent d3906cb commit c4fabd4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Dictify/DictionaryWord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ public partial class DefinitionType
/// List of synonyms based on the definition
/// </summary>
[JsonProperty("synonyms")]
public List<string> Synonyms { get; set; }
public string[] Synonyms { get; set; }

/// <summary>
/// List of antonyms based on the definition
/// </summary>
[JsonProperty("antonyms")]
public List<string> Antonyms { get; set; }
public string[] Antonyms { get; set; }

/// <summary>
/// Example in sentence
Expand Down Expand Up @@ -96,19 +96,19 @@ public partial class Meaning
/// List of word definitions. Words usually come with one or more definitions.
/// </summary>
[JsonProperty("definitions")]
public List<DefinitionType> Definitions { get; set; }
public DefinitionType[] Definitions { get; set; }

/// <summary>
/// List of synonyms based on the word meaning
/// </summary>
[JsonProperty("synonyms")]
public List<string> Synonyms { get; set; }
public string[] Synonyms { get; set; }

/// <summary>
/// List of antonyms based on the word meaning
/// </summary>
[JsonProperty("antonyms")]
public List<string> Antonyms { get; set; }
public string[] Antonyms { get; set; }
}

/// <summary>
Expand Down Expand Up @@ -157,13 +157,13 @@ public partial class Phonetic
/// The alternative phonetic representations
/// </summary>
[JsonProperty("phonetics")]
public List<Phonetic> Phonetics { get; set; }
public Phonetic[] Phonetics { get; set; }

/// <summary>
/// Word meanings
/// </summary>
[JsonProperty("meanings")]
public List<Meaning> Meanings { get; set; }
public Meaning[] Meanings { get; set; }

/// <summary>
/// License information
Expand All @@ -175,6 +175,6 @@ public partial class Phonetic
/// List of where we got the word information from
/// </summary>
[JsonProperty("sourceUrls")]
public List<string> SourceUrls { get; set; }
public string[] SourceUrls { get; set; }
}
}

0 comments on commit c4fabd4

Please sign in to comment.