Umgeschrieben auf Sevdesk
This commit is contained in:
17
ConsoleApp3/DataContracts/ModelUnity.cs
Normal file
17
ConsoleApp3/DataContracts/ModelUnity.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Newtonsoft.Json;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace ConsoleApp3.DataContracts
|
||||
{
|
||||
[DataContract]
|
||||
public class ModelUnity
|
||||
{
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "id")]
|
||||
public int Id { get; set; } = 1;
|
||||
|
||||
[DataMember(Name = "objectName", EmitDefaultValue = false)]
|
||||
[JsonProperty(PropertyName = "objectName")]
|
||||
public string ObjectName { get; set; } = "Unity";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user