<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using ServiceStack.ServiceHost;
using reexmonkey.xcal.domain.contracts;
using reexmonkey.xcal.domain.models;


namespace reexmonkey.xcal.domain.operations
{
    [DataContract]
    [Route("/calendars/create")]
    public class CreateCalendar: IReturn<VCALENDAR>
    {
        [DataMember]
        public string Version { get; set; }

        [DataMember]
        public CALSCALE Scale { get; set; }

        [DataMember]
        public string ProductId { get; set; }

    }
}<commit_msg>added some calendar request dtos<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using ServiceStack.ServiceHost;
using reexmonkey.xcal.domain.contracts;
using reexmonkey.xcal.domain.models;


namespace reexmonkey.xcal.domain.operations
{
    [DataContract]
    [Route("/calendars/create", "POST")]
    public class CreateCalendar: IReturn<VCALENDAR>
    {
        [DataMember]
        public string Version { get; set; }

        [DataMember]
        public CALSCALE Scale { get; set; }

        [DataMember]
        public string ProductId { get; set; }

        public X_COMPONENT Tag { get; set; }

        public List<VTIMEZONE> TimeZones { get; set; }

    }

    [DataContract]
    [Route("/calendars/add", "POST")]
    public class AddCalendar: IReturnVoid
    {
        [DataMember]
        public VCALENDAR Calendar { get; set; }
    }

    [DataContract]
    [Route("/calendars/batch/add", "POST")]
    public class AddCalendars: IReturnVoid
    {
        [DataMember]
        public List<VCALENDAR> Calendars { get; set; }
    }


    [DataContract]
    [Route("/calendars/update", "POST")]
    public class UpdateCalendar: IReturn<VCALENDAR>
    {
        [DataMember]
        public VCALENDAR Calendar { get; set; }
    }


    [DataContract]
    [Route("/calendars/update", "POST")]
    public class UpdateCalendars : IReturn<List<VCALENDAR>>
    {
        [DataMember]
        public List<VCALENDAR> Calendars { get; set; }
    }

    [DataContract]
    [Route("/calendars/{CalendarId}/patch", "POST")]
    public class PatchCalendar: IReturn<VCALENDAR>
    {
        [DataMember]
        public string CalendarId { get; set; }

        [DataMember]
        public string Version { get; set; }

        [DataMember]
        public CALSCALE Scale { get; set; }

        [DataMember]
        public string ProductId { get; set; }

        public X_COMPONENT Tag { get; set; }

        public List<VTIMEZONE> TimeZones { get; set; }
    }

    [DataContract]
    [Route("/calendars/batch/patch", "POST")]
    public class PatchCalendars : IReturn<List<VCALENDAR>>
    {
        [DataMember]
        public List<string> CalendarIds { get; set; }

        [DataMember]
        public string Version { get; set; }

        [DataMember]
        public CALSCALE Scale { get; set; }

        [DataMember]
        public string ProductId { get; set; }

        public X_COMPONENT Tag { get; set; }

        public List<VTIMEZONE> TimeZones { get; set; }
    }


}
{'fraction_non_alphanumeric': 0.11006289308176101, 'fraction_numerical': 0.0, 'mean_word_length': 2.6106696935300793, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3831096', 'n_tokens_mistral': 1019, 'n_tokens_neox': 980, 'n_words': 233}