Skip to content

Instantly share code, notes, and snippets.

@NTaylorMullen
Last active December 15, 2015 14:28
Show Gist options
  • Save NTaylorMullen/5274218 to your computer and use it in GitHub Desktop.
Save NTaylorMullen/5274218 to your computer and use it in GitHub Desktop.
ShapeModel ShapeMove REVISION
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