Last active
December 15, 2015 14:28
-
-
Save NTaylorMullen/5274218 to your computer and use it in GitHub Desktop.
ShapeModel ShapeMove REVISION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Newtonsoft.Json; | |
namespace MoveShape | |
{ | |
public class ShapeModel | |
{ | |
// We declare Left and Top as lowercase with JsonProperty to sync the client and server models | |
[JsonProperty("left")] | |
public double Left { get; set; } | |
[JsonProperty("top")] | |
public double Top { get; set; } | |
// We don't want the client to get the "LastUpdatedBy" property | |
[JsonIgnore] | |
public string LastUpdatedBy { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment