// <auto-generated>
//   This file was generated by a tool; you should avoid making direct changes.
//   Consider using 'partial classes' to extend these types
//   Input: service_usergameactivity.proto
// </auto-generated>

#region Designer generated code
#pragma warning disable CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, RCS1057, RCS1085, RCS1192
namespace SteamKit2.WebUI.Internal
{

    [global::ProtoBuf.ProtoContract()]
    public partial class CUserGameActivity_Event : global::ProtoBuf.IExtensible
    {
        private global::ProtoBuf.IExtension __pbn__extensionData;
        global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
            => global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing);

        [global::ProtoBuf.ProtoMember(2)]
        public uint timestamp
        {
            get => __pbn__timestamp.GetValueOrDefault();
            set => __pbn__timestamp = value;
        }
        public bool ShouldSerializetimestamp() => __pbn__timestamp != null;
        public void Resettimestamp() => __pbn__timestamp = null;
        private uint? __pbn__timestamp;

        [global::ProtoBuf.ProtoMember(3)]
        public int event_type
        {
            get => __pbn__event_type.GetValueOrDefault();
            set => __pbn__event_type = value;
        }
        public bool ShouldSerializeevent_type() => __pbn__event_type != null;
        public void Resetevent_type() => __pbn__event_type = null;
        private int? __pbn__event_type;

        [global::ProtoBuf.ProtoMember(4)]
        public uint event_sub_type
        {
            get => __pbn__event_sub_type.GetValueOrDefault();
            set => __pbn__event_sub_type = value;
        }
        public bool ShouldSerializeevent_sub_type() => __pbn__event_sub_type != null;
        public void Resetevent_sub_type() => __pbn__event_sub_type = null;
        private uint? __pbn__event_sub_type;

        [global::ProtoBuf.ProtoMember(5)]
        public long data1
        {
            get => __pbn__data1.GetValueOrDefault();
            set => __pbn__data1 = value;
        }
        public bool ShouldSerializedata1() => __pbn__data1 != null;
        public void Resetdata1() => __pbn__data1 = null;
        private long? __pbn__data1;

        [global::ProtoBuf.ProtoMember(6)]
        public long data2
        {
            get => __pbn__data2.GetValueOrDefault();
            set => __pbn__data2 = value;
        }
        public bool ShouldSerializedata2() => __pbn__data2 != null;
        public void Resetdata2() => __pbn__data2 = null;
        private long? __pbn__data2;

        [global::ProtoBuf.ProtoMember(7)]
        public long data3
        {
            get => __pbn__data3.GetValueOrDefault();
            set => __pbn__data3 = value;
        }
        public bool ShouldSerializedata3() => __pbn__data3 != null;
        public void Resetdata3() => __pbn__data3 = null;
        private long? __pbn__data3;

        [global::ProtoBuf.ProtoMember(8)]
        public long data4
        {
            get => __pbn__data4.GetValueOrDefault();
            set => __pbn__data4 = value;
        }
        public bool ShouldSerializedata4() => __pbn__data4 != null;
        public void Resetdata4() => __pbn__data4 = null;
        private long? __pbn__data4;

        [global::ProtoBuf.ProtoMember(10)]
        public uint item_appid
        {
            get => __pbn__item_appid.GetValueOrDefault();
            set => __pbn__item_appid = value;
        }
        public bool ShouldSerializeitem_appid() => __pbn__item_appid != null;
        public void Resetitem_appid() => __pbn__item_appid = null;
        private uint? __pbn__item_appid;

        [global::ProtoBuf.ProtoMember(11)]
        public ulong item_contextid
        {
            get => __pbn__item_contextid.GetValueOrDefault();
            set => __pbn__item_contextid = value;
        }
        public bool ShouldSerializeitem_contextid() => __pbn__item_contextid != null;
        public void Resetitem_contextid() => __pbn__item_contextid = null;
        private ulong? __pbn__item_contextid;

        [global::ProtoBuf.ProtoMember(12)]
        public ulong item_assetid
        {
            get => __pbn__item_assetid.GetValueOrDefault();
            set => __pbn__item_assetid = value;
        }
        public bool ShouldSerializeitem_assetid() => __pbn__item_assetid != null;
        public void Resetitem_assetid() => __pbn__item_assetid = null;
        private ulong? __pbn__item_assetid;

        [global::ProtoBuf.ProtoMember(13)]
        public byte[] proto_data
        {
            get => __pbn__proto_data;
            set => __pbn__proto_data = value;
        }
        public bool ShouldSerializeproto_data() => __pbn__proto_data != null;
        public void Resetproto_data() => __pbn__proto_data = null;
        private byte[] __pbn__proto_data;

    }

    [global::ProtoBuf.ProtoContract()]
    public partial class CUserGameActivity_GetActivity_Request : global::ProtoBuf.IExtensible
    {
        private global::ProtoBuf.IExtension __pbn__extensionData;
        global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
            => global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing);

        [global::ProtoBuf.ProtoMember(1, DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
        public ulong steamid
        {
            get => __pbn__steamid.GetValueOrDefault();
            set => __pbn__steamid = value;
        }
        public bool ShouldSerializesteamid() => __pbn__steamid != null;
        public void Resetsteamid() => __pbn__steamid = null;
        private ulong? __pbn__steamid;

        [global::ProtoBuf.ProtoMember(2)]
        public uint appid
        {
            get => __pbn__appid.GetValueOrDefault();
            set => __pbn__appid = value;
        }
        public bool ShouldSerializeappid() => __pbn__appid != null;
        public void Resetappid() => __pbn__appid = null;
        private uint? __pbn__appid;

        [global::ProtoBuf.ProtoMember(3)]
        public int count
        {
            get => __pbn__count.GetValueOrDefault();
            set => __pbn__count = value;
        }
        public bool ShouldSerializecount() => __pbn__count != null;
        public void Resetcount() => __pbn__count = null;
        private int? __pbn__count;

        [global::ProtoBuf.ProtoMember(4)]
        public uint starttime
        {
            get => __pbn__starttime.GetValueOrDefault();
            set => __pbn__starttime = value;
        }
        public bool ShouldSerializestarttime() => __pbn__starttime != null;
        public void Resetstarttime() => __pbn__starttime = null;
        private uint? __pbn__starttime;

        [global::ProtoBuf.ProtoMember(5)]
        public uint endtime
        {
            get => __pbn__endtime.GetValueOrDefault();
            set => __pbn__endtime = value;
        }
        public bool ShouldSerializeendtime() => __pbn__endtime != null;
        public void Resetendtime() => __pbn__endtime = null;
        private uint? __pbn__endtime;

    }

    [global::ProtoBuf.ProtoContract()]
    public partial class CUserGameActivity_GetActivity_Response : global::ProtoBuf.IExtensible
    {
        private global::ProtoBuf.IExtension __pbn__extensionData;
        global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
            => global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing);

        [global::ProtoBuf.ProtoMember(1, DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
        public ulong steamid
        {
            get => __pbn__steamid.GetValueOrDefault();
            set => __pbn__steamid = value;
        }
        public bool ShouldSerializesteamid() => __pbn__steamid != null;
        public void Resetsteamid() => __pbn__steamid = null;
        private ulong? __pbn__steamid;

        [global::ProtoBuf.ProtoMember(2)]
        public uint appid
        {
            get => __pbn__appid.GetValueOrDefault();
            set => __pbn__appid = value;
        }
        public bool ShouldSerializeappid() => __pbn__appid != null;
        public void Resetappid() => __pbn__appid = null;
        private uint? __pbn__appid;

        [global::ProtoBuf.ProtoMember(3)]
        public global::System.Collections.Generic.List<CUserGameActivity_Event> events { get; } = new global::System.Collections.Generic.List<CUserGameActivity_Event>();

    }

    public class UserGameActivity : SteamUnifiedMessages.UnifiedService
    {
        public override string ServiceName { get; } = "UserGameActivity";

        public AsyncJob<SteamUnifiedMessages.ServiceMethodResponse<CUserGameActivity_GetActivity_Response>> GetActivity( CUserGameActivity_GetActivity_Request request )
        {
            return UnifiedMessages.SendMessage<CUserGameActivity_GetActivity_Request, CUserGameActivity_GetActivity_Response>( "UserGameActivity.GetActivity#1", request );
        }

        public override void HandleResponseMsg( string methodName, PacketClientMsgProtobuf packetMsg )
        {
            switch ( methodName )
            {
                case "GetActivity":
                    PostResponseMsg<CUserGameActivity_GetActivity_Response>( packetMsg );
                    break;
            }
        }

        public override void HandleNotificationMsg( string methodName, PacketClientMsgProtobuf packetMsg )
        {
        }
    }

}

#pragma warning restore CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, RCS1057, RCS1085, RCS1192
#endregion
