Example #1
0
 public override object ReadJson(
     JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer
     )
 {
     if (reader.Value != null)
     {
         return(SpacedockApi.ExpandPath(reader.Value.ToString()));
     }
     return(null);
 }
Example #2
0
 /// <summary>
 /// Returns the path to the mod's home on SpaceDock
 /// </summary>
 /// <returns>The home.</returns>
 public Uri GetPageUrl()
 {
     return(SpacedockApi.ExpandPath(string.Format("/mod/{0}/{1}", id, name)));
 }