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

Commit

Permalink
added JsonProperty annotations for 1.x compatibility (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
dittodhole authored Jul 3, 2021
1 parent 9fbcb93 commit def6365
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/projects/MyCouch/Responses/GetDatabaseResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ public class GetDatabaseResponse : Response
public DbSizes Sizes { get; set; }

[Obsolete("Use sizes.file instead")]
[JsonProperty("disk_size")]
public long DiskSize { get; set; }

[Obsolete("Use sizes.active instead")]
[JsonProperty("data_size")]
public long DataSize { get; set; }

[JsonProperty(JsonScheme.DiskFormatVersion)]
Expand All @@ -42,4 +44,4 @@ public class DbSizes
public long Active { get; set; }
}
}
}
}

0 comments on commit def6365

Please sign in to comment.