Skip to main content

steam_enums/
eclientnotificationtype.rs

1#![allow(non_camel_case_types)]
2#![allow(non_upper_case_globals)]
3#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
4#[repr(i32)]
5pub enum EClientNotificationType {
6    Invalid = 0,
7    DownloadCompleted = 1,
8    FriendInvite = 2,
9    FriendInGame = 3,
10    FriendOnline = 4,
11    Achievement = 5,
12    LowBattery = 6,
13    SystemUpdate = 7,
14    FriendMessage = 8,
15    GroupChatMessage = 9,
16    FriendInviteRollup = 10,
17    FamilySharingStopPlaying = 12,
18    Screenshot = 14,
19    CloudSyncFailure = 15,
20    CloudSyncConflict = 16,
21    IncomingVoiceChat = 17,
22    ClaimSteamDeckRewards = 18,
23    GiftReceived = 19,
24    ItemAnnouncement = 20,
25    HardwareSurvey = 21,
26    LowDiskSpace = 22,
27    BatteryTemperature = 23,
28    DockUnsupportedFirmware = 24,
29    PeerContentUpload = 25,
30    CannotReadControllerGuideButton = 26,
31    Comment = 27,
32    Wishlist = 28,
33    TradeOffer = 29,
34    AsyncGame = 30,
35    General = 31,
36    HelpRequest = 32,
37    OverlaySplashScreen = 33,
38    BroadcastAvailableToWatch = 34,
39    TimedTrialRemaining = 35,
40    LoginRefresh = 36,
41    MajorSale = 37,
42    TimerExpired = 38,
43    ModeratorMsg = 39,
44    SteamInputActionSetChanged = 40,
45    RemoteClientConnection = 41,
46    RemoteClientStartStream = 42,
47    StreamingClientConnection = 43,
48    FamilyInvite = 44,
49    PlaytimeWarning = 45,
50    FamilyPurchaseRequest = 46,
51    FamilyPurchaseRequestResponse = 47,
52    ParentalFeatureRequest = 48,
53    ParentalPlaytimeRequest = 49,
54    GameRecordingError = 50,
55    ParentalFeatureResponse = 51,
56    ParentalPlaytimeResponse = 52,
57    RequestedGameAdded = 53,
58    ClipDownloaded = 54,
59    GameRecordingStart = 55,
60    GameRecordingStop = 56,
61    GameRecordingUserMarkerAdded = 57,
62    GameRecordingInstantClip = 58,
63    PlaytestInvite = 59,
64    TradeReversal = 60,
65    HardwareUpdateAvailable = 61,
66}
67
68impl EClientNotificationType {
69    pub fn from_i32(val: i32) -> Option<Self> {
70        match val {
71            x if x == Self::Invalid as i32 => Some(Self::Invalid),
72            x if x == Self::DownloadCompleted as i32 => Some(Self::DownloadCompleted),
73            x if x == Self::FriendInvite as i32 => Some(Self::FriendInvite),
74            x if x == Self::FriendInGame as i32 => Some(Self::FriendInGame),
75            x if x == Self::FriendOnline as i32 => Some(Self::FriendOnline),
76            x if x == Self::Achievement as i32 => Some(Self::Achievement),
77            x if x == Self::LowBattery as i32 => Some(Self::LowBattery),
78            x if x == Self::SystemUpdate as i32 => Some(Self::SystemUpdate),
79            x if x == Self::FriendMessage as i32 => Some(Self::FriendMessage),
80            x if x == Self::GroupChatMessage as i32 => Some(Self::GroupChatMessage),
81            x if x == Self::FriendInviteRollup as i32 => Some(Self::FriendInviteRollup),
82            x if x == Self::FamilySharingStopPlaying as i32 => Some(Self::FamilySharingStopPlaying),
83            x if x == Self::Screenshot as i32 => Some(Self::Screenshot),
84            x if x == Self::CloudSyncFailure as i32 => Some(Self::CloudSyncFailure),
85            x if x == Self::CloudSyncConflict as i32 => Some(Self::CloudSyncConflict),
86            x if x == Self::IncomingVoiceChat as i32 => Some(Self::IncomingVoiceChat),
87            x if x == Self::ClaimSteamDeckRewards as i32 => Some(Self::ClaimSteamDeckRewards),
88            x if x == Self::GiftReceived as i32 => Some(Self::GiftReceived),
89            x if x == Self::ItemAnnouncement as i32 => Some(Self::ItemAnnouncement),
90            x if x == Self::HardwareSurvey as i32 => Some(Self::HardwareSurvey),
91            x if x == Self::LowDiskSpace as i32 => Some(Self::LowDiskSpace),
92            x if x == Self::BatteryTemperature as i32 => Some(Self::BatteryTemperature),
93            x if x == Self::DockUnsupportedFirmware as i32 => Some(Self::DockUnsupportedFirmware),
94            x if x == Self::PeerContentUpload as i32 => Some(Self::PeerContentUpload),
95            x if x == Self::CannotReadControllerGuideButton as i32 => Some(Self::CannotReadControllerGuideButton),
96            x if x == Self::Comment as i32 => Some(Self::Comment),
97            x if x == Self::Wishlist as i32 => Some(Self::Wishlist),
98            x if x == Self::TradeOffer as i32 => Some(Self::TradeOffer),
99            x if x == Self::AsyncGame as i32 => Some(Self::AsyncGame),
100            x if x == Self::General as i32 => Some(Self::General),
101            x if x == Self::HelpRequest as i32 => Some(Self::HelpRequest),
102            x if x == Self::OverlaySplashScreen as i32 => Some(Self::OverlaySplashScreen),
103            x if x == Self::BroadcastAvailableToWatch as i32 => Some(Self::BroadcastAvailableToWatch),
104            x if x == Self::TimedTrialRemaining as i32 => Some(Self::TimedTrialRemaining),
105            x if x == Self::LoginRefresh as i32 => Some(Self::LoginRefresh),
106            x if x == Self::MajorSale as i32 => Some(Self::MajorSale),
107            x if x == Self::TimerExpired as i32 => Some(Self::TimerExpired),
108            x if x == Self::ModeratorMsg as i32 => Some(Self::ModeratorMsg),
109            x if x == Self::SteamInputActionSetChanged as i32 => Some(Self::SteamInputActionSetChanged),
110            x if x == Self::RemoteClientConnection as i32 => Some(Self::RemoteClientConnection),
111            x if x == Self::RemoteClientStartStream as i32 => Some(Self::RemoteClientStartStream),
112            x if x == Self::StreamingClientConnection as i32 => Some(Self::StreamingClientConnection),
113            x if x == Self::FamilyInvite as i32 => Some(Self::FamilyInvite),
114            x if x == Self::PlaytimeWarning as i32 => Some(Self::PlaytimeWarning),
115            x if x == Self::FamilyPurchaseRequest as i32 => Some(Self::FamilyPurchaseRequest),
116            x if x == Self::FamilyPurchaseRequestResponse as i32 => Some(Self::FamilyPurchaseRequestResponse),
117            x if x == Self::ParentalFeatureRequest as i32 => Some(Self::ParentalFeatureRequest),
118            x if x == Self::ParentalPlaytimeRequest as i32 => Some(Self::ParentalPlaytimeRequest),
119            x if x == Self::GameRecordingError as i32 => Some(Self::GameRecordingError),
120            x if x == Self::ParentalFeatureResponse as i32 => Some(Self::ParentalFeatureResponse),
121            x if x == Self::ParentalPlaytimeResponse as i32 => Some(Self::ParentalPlaytimeResponse),
122            x if x == Self::RequestedGameAdded as i32 => Some(Self::RequestedGameAdded),
123            x if x == Self::ClipDownloaded as i32 => Some(Self::ClipDownloaded),
124            x if x == Self::GameRecordingStart as i32 => Some(Self::GameRecordingStart),
125            x if x == Self::GameRecordingStop as i32 => Some(Self::GameRecordingStop),
126            x if x == Self::GameRecordingUserMarkerAdded as i32 => Some(Self::GameRecordingUserMarkerAdded),
127            x if x == Self::GameRecordingInstantClip as i32 => Some(Self::GameRecordingInstantClip),
128            x if x == Self::PlaytestInvite as i32 => Some(Self::PlaytestInvite),
129            x if x == Self::TradeReversal as i32 => Some(Self::TradeReversal),
130            x if x == Self::HardwareUpdateAvailable as i32 => Some(Self::HardwareUpdateAvailable),
131            _ => None,
132        }
133    }
134}