Skip to content

Commit

Permalink
Generate SteamNotification protobufs
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed Jul 25, 2024
1 parent ec0e011 commit 77b62d5
Show file tree
Hide file tree
Showing 3 changed files with 631 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Resources/ProtobufGen/protos.csv
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ steam,steammessages_linkfilter.steamclient.proto,SteamMsgLinkFilter.cs,SteamKit2
steam,steammessages_lobbymatchmaking.steamclient.proto,SteamMsgLobbyMatchmaking.cs,SteamKit2.Internal
steam,steammessages_market.steamclient.proto,SteamMsgMarket.cs,SteamKit2.Internal
steam,steammessages_marketingmessages.steamclient.proto,SteamMsgMarketingMessages.cs,SteamKit2.Internal
steam,steammessages_notifications.steamclient.proto,SteamMsgNotifications.cs,SteamKit2.Internal
steam,steammessages_offline.steamclient.proto,SteamMsgOffline.cs,SteamKit2.Internal
steam,steammessages_parental_objects.proto,SteamMsgParentalObjects.cs,SteamKit2.Internal
steam,steammessages_parental.steamclient.proto,SteamMsgParental.cs,SteamKit2.Internal
Expand Down Expand Up @@ -120,6 +121,7 @@ webui,service_cloudconfigstore.proto,WebUI\SteamMsgCloudConfigStore.cs,SteamKit2
webui,service_community.proto,WebUI\SteamMsgCommunity.cs,SteamKit2.WebUI.Internal
webui,service_friendslist.proto,WebUI\SteamMsgFriendsList.cs,SteamKit2.WebUI.Internal
webui,service_loyaltyrewards.proto,WebUI\SteamMsgLoyaltyRewards.cs,SteamKit2.WebUI.Internal
webui,service_steamnotification.proto,WebUI\SteamMsgSteamNotification.cs,SteamKit2.WebUI.Internal
webui,service_storequery.proto,WebUI\SteamMsgStoreQuery.cs,SteamKit2.WebUI.Internal
webui,service_usergameactivity.proto,WebUI\SteamMsgUserGameActivity.cs,SteamKit2.WebUI.Internal
webui,service_usergamenotes.proto,WebUI\SteamMsgUserGameNotes.cs,SteamKit2.WebUI.Internal
Expand Down
239 changes: 239 additions & 0 deletions SteamKit2/SteamKit2/Base/Generated/SteamMsgNotifications.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
// <auto-generated>
// This file was generated by a tool; you should avoid making direct changes.
// Consider using 'partial classes' to extend these types
// Input: steammessages_notifications.steamclient.proto
// </auto-generated>

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

[global::ProtoBuf.ProtoContract()]
public partial class SteamNotificationData : 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)]
public ulong notification_id
{
get => __pbn__notification_id.GetValueOrDefault();
set => __pbn__notification_id = value;
}
public bool ShouldSerializenotification_id() => __pbn__notification_id != null;
public void Resetnotification_id() => __pbn__notification_id = null;
private ulong? __pbn__notification_id;

[global::ProtoBuf.ProtoMember(2)]
public uint notification_targets
{
get => __pbn__notification_targets.GetValueOrDefault();
set => __pbn__notification_targets = value;
}
public bool ShouldSerializenotification_targets() => __pbn__notification_targets != null;
public void Resetnotification_targets() => __pbn__notification_targets = null;
private uint? __pbn__notification_targets;

[global::ProtoBuf.ProtoMember(3)]
[global::System.ComponentModel.DefaultValue(ESteamNotificationType.k_ESteamNotificationType_Invalid)]
public ESteamNotificationType notification_type
{
get => __pbn__notification_type ?? ESteamNotificationType.k_ESteamNotificationType_Invalid;
set => __pbn__notification_type = value;
}
public bool ShouldSerializenotification_type() => __pbn__notification_type != null;
public void Resetnotification_type() => __pbn__notification_type = null;
private ESteamNotificationType? __pbn__notification_type;

[global::ProtoBuf.ProtoMember(4)]
[global::System.ComponentModel.DefaultValue("")]
public string body_data
{
get => __pbn__body_data ?? "";
set => __pbn__body_data = value;
}
public bool ShouldSerializebody_data() => __pbn__body_data != null;
public void Resetbody_data() => __pbn__body_data = null;
private string __pbn__body_data;

[global::ProtoBuf.ProtoMember(7)]
public bool read
{
get => __pbn__read.GetValueOrDefault();
set => __pbn__read = value;
}
public bool ShouldSerializeread() => __pbn__read != null;
public void Resetread() => __pbn__read = null;
private bool? __pbn__read;

[global::ProtoBuf.ProtoMember(8)]
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(9)]
public bool hidden
{
get => __pbn__hidden.GetValueOrDefault();
set => __pbn__hidden = value;
}
public bool ShouldSerializehidden() => __pbn__hidden != null;
public void Resethidden() => __pbn__hidden = null;
private bool? __pbn__hidden;

[global::ProtoBuf.ProtoMember(10)]
public uint expiry
{
get => __pbn__expiry.GetValueOrDefault();
set => __pbn__expiry = value;
}
public bool ShouldSerializeexpiry() => __pbn__expiry != null;
public void Resetexpiry() => __pbn__expiry = null;
private uint? __pbn__expiry;

[global::ProtoBuf.ProtoMember(11)]
public uint viewed
{
get => __pbn__viewed.GetValueOrDefault();
set => __pbn__viewed = value;
}
public bool ShouldSerializeviewed() => __pbn__viewed != null;
public void Resetviewed() => __pbn__viewed = null;
private uint? __pbn__viewed;

}

[global::ProtoBuf.ProtoContract()]
public partial class CSteamNotification_NotificationsReceived_Notification : 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)]
public global::System.Collections.Generic.List<SteamNotificationData> notifications { get; } = new global::System.Collections.Generic.List<SteamNotificationData>();

[global::ProtoBuf.ProtoMember(2)]
public uint pending_gift_count
{
get => __pbn__pending_gift_count.GetValueOrDefault();
set => __pbn__pending_gift_count = value;
}
public bool ShouldSerializepending_gift_count() => __pbn__pending_gift_count != null;
public void Resetpending_gift_count() => __pbn__pending_gift_count = null;
private uint? __pbn__pending_gift_count;

[global::ProtoBuf.ProtoMember(3)]
public uint pending_friend_count
{
get => __pbn__pending_friend_count.GetValueOrDefault();
set => __pbn__pending_friend_count = value;
}
public bool ShouldSerializepending_friend_count() => __pbn__pending_friend_count != null;
public void Resetpending_friend_count() => __pbn__pending_friend_count = null;
private uint? __pbn__pending_friend_count;

[global::ProtoBuf.ProtoMember(4)]
public uint pending_family_invite_count
{
get => __pbn__pending_family_invite_count.GetValueOrDefault();
set => __pbn__pending_family_invite_count = value;
}
public bool ShouldSerializepending_family_invite_count() => __pbn__pending_family_invite_count != null;
public void Resetpending_family_invite_count() => __pbn__pending_family_invite_count = null;
private uint? __pbn__pending_family_invite_count;

}

[global::ProtoBuf.ProtoContract()]
public partial class SteamNotificationPreference : 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)]
[global::System.ComponentModel.DefaultValue(ESteamNotificationType.k_ESteamNotificationType_Invalid)]
public ESteamNotificationType notification_type
{
get => __pbn__notification_type ?? ESteamNotificationType.k_ESteamNotificationType_Invalid;
set => __pbn__notification_type = value;
}
public bool ShouldSerializenotification_type() => __pbn__notification_type != null;
public void Resetnotification_type() => __pbn__notification_type = null;
private ESteamNotificationType? __pbn__notification_type;

[global::ProtoBuf.ProtoMember(2)]
public uint notification_targets
{
get => __pbn__notification_targets.GetValueOrDefault();
set => __pbn__notification_targets = value;
}
public bool ShouldSerializenotification_targets() => __pbn__notification_targets != null;
public void Resetnotification_targets() => __pbn__notification_targets = null;
private uint? __pbn__notification_targets;

}

[global::ProtoBuf.ProtoContract()]
public partial class CSteamNotification_PreferencesUpdated_Notification : 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)]
public global::System.Collections.Generic.List<SteamNotificationPreference> preferences { get; } = new global::System.Collections.Generic.List<SteamNotificationPreference>();

}

[global::ProtoBuf.ProtoContract()]
public enum ESteamNotificationType
{
k_ESteamNotificationType_Invalid = 0,
k_ESteamNotificationType_Test = 1,
k_ESteamNotificationType_Gift = 2,
k_ESteamNotificationType_Comment = 3,
k_ESteamNotificationType_Item = 4,
k_ESteamNotificationType_FriendInvite = 5,
k_ESteamNotificationType_MajorSale = 6,
k_ESteamNotificationType_PreloadAvailable = 7,
k_ESteamNotificationType_Wishlist = 8,
k_ESteamNotificationType_TradeOffer = 9,
k_ESteamNotificationType_General = 10,
k_ESteamNotificationType_HelpRequest = 11,
k_ESteamNotificationType_AsyncGame = 12,
k_ESteamNotificationType_ChatMsg = 13,
k_ESteamNotificationType_ModeratorMsg = 14,
k_ESteamNotificationType_ParentalFeatureAccessRequest = 15,
k_ESteamNotificationType_FamilyInvite = 16,
k_ESteamNotificationType_FamilyPurchaseRequest = 17,
k_ESteamNotificationType_ParentalPlaytimeRequest = 18,
k_ESteamNotificationType_FamilyPurchaseRequestResponse = 19,
k_ESteamNotificationType_ParentalFeatureAccessResponse = 20,
k_ESteamNotificationType_ParentalPlaytimeResponse = 21,
k_ESteamNotificationType_RequestedGameAdded = 22,
k_ESteamNotificationType_SendToPhone = 23,
k_ESteamNotificationType_ClipDownloaded = 24,
k_ESteamNotificationType_2FAPrompt = 25,
k_ESteamNotificationType_MobileConfirmation = 26,
k_ESteamNotificationType_PartnerEvent = 27,
}

public interface ISteamNotificationClient
{
NoResponse NotificationsReceived(CSteamNotification_NotificationsReceived_Notification request);
NoResponse PreferencesUpdated(CSteamNotification_PreferencesUpdated_Notification request);
}

}

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

0 comments on commit 77b62d5

Please sign in to comment.