public void AddName(OAuthTranslation translation) { translation.Type = "name"; Translations.Add(new UMAResourceTranslation { Translation = translation }); }
public static JObject ToDto(this OAuthTranslation translation) { return(new JObject { { "language", translation.Language }, { "value", translation.Value } }); }
public void AddDescription(OAuthTranslation translation) { translation.Type = "description"; Translations.Add(new UMAResourceTranslation { Translation = translation }); }