public void Write(LitJson.JsonWriter writer) { writer.WriteObjectStart(); writer.WritePropertyName("id"); writer.Write(this.Id); writer.WritePropertyName("day"); writer.Write(this.Day); writer.WritePropertyName("from"); writer.Write(this.From); writer.WritePropertyName("till"); writer.Write(this.Till); writer.WritePropertyName("meetingRoom"); writer.Write(this.meetingRoom); writer.WritePropertyName("user"); writer.Write(this.Users); writer.WritePropertyName("notifyUsers"); writer.WriteArrayStart(); foreach (string user in this.NotifyUsers) writer.Write(user); writer.WriteArrayEnd(); writer.WritePropertyName("usersCheckedIn"); writer.Write(this.UsersCheckedIn); writer.WriteObjectEnd(); }
public void Write(LitJson.JsonWriter writer) { writer.WriteObjectStart(); writer.WritePropertyName("id"); writer.Write(this.Id); writer.WritePropertyName("name"); writer.Write(this.Name); writer.WritePropertyName("capacity"); writer.Write(this.Capacity); writer.WriteObjectEnd(); }