/// <summary> /// Makes a request to API method /tags/synonyms /// <para>Documentation can be found following the link below:</para> /// <para>https://api.stackexchange.com/docs/tag-synonyms</para> /// </summary> /// <param name="parameters">The request parameters.</param> /// <returns>Returns all tag synonyms found a site.</returns> public override IBridgeResponseCollection<TagSynonym> GetTagSynonyms(TagSynonymsQuery parameters = null) { return GetApiResultCollection<TagSynonym, TagSynonymsQuery>(ApiMethodEnum.TagSynonyms, parameters); }
/// <summary> /// Makes a request to API method /tags/{tags}/synonyms /// <para>Documentation can be found following the link below:</para> /// <para>https://api.stackexchange.com/docs/synonyms-by-tags</para> /// </summary> /// <param name="tag">The single tag in {tags}.</param> /// <param name="parameters">The request parameters.</param> /// <returns>Returns the tags synonyms for the tag identified by <paramref name="tag"/>.</returns> public override IBridgeResponseCollection<TagSynonym> GetTagSynonyms(string tag, TagSynonymsQuery parameters = null) { return GetTagsSynonyms(new[] { tag }, parameters); }
/// <summary> /// Makes a request to API method /tags/{tags}/synonyms /// <para>Documentation can be found following the link below:</para> /// <para>https://api.stackexchange.com/docs/synonyms-by-tags</para> /// </summary> /// <param name="tags">The {tags} vector.</param> /// <param name="parameters">The request parameters.</param> /// <returns>Returns the tags synonyms for the given set of tags in <paramref name="tags"/>.</returns> public override IBridgeResponseCollection<TagSynonym> GetTagsSynonyms(string[] tags, TagSynonymsQuery parameters = null) { return GetApiResultCollection<TagSynonym, TagSynonymsQuery>(ApiMethodEnum.SynonymsByTags, CreateTagsVector(tags), parameters); }