public void AddName(OAuthTranslation translation)
 {
     translation.Type = "name";
     Translations.Add(new UMAResourceTranslation
     {
         Translation = translation
     });
 }
Esempio n. 2
0
 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
     });
 }