GoPxL SDK

- Home
- Files
- Namespace

GoNotificationType.h
Go to the documentation of this file.
1
9 #ifndef GO_PXL_SDK_NOTIFICATIONTYPE_H
10 #define GO_PXL_SDK_NOTIFICATIONTYPE_H
11
12 #include <GoPxLSdk/Def.h>
13
14 namespace GoPxLSdk
15 {
16
17 class GoPxLSdkClass GoNotificationType
18 {
19 public:
20 enum Type : k32s
21 {
22 Created,
23 Deleted,
24 Changed
25 };
26
27 GoNotificationType() = default;
28
29 constexpr GoNotificationType(Type type) : type(type) { }
30
31 operator Type() const { return type; }
32 constexpr bool operator==(GoNotificationType t) const { return type == t.type; }
33 constexpr bool operator!=(GoNotificationType t) const { return type != t.type; }
34
35 const std::string ToString() const;
36
37 static GoNotificationType FromString(const std::string& type);
38
39 private:
40 Type type;
41 };
42
43 }
44
45 #endif
GoPxLSdk::GoNotificationType::Deleted
A resource was deleted.
Definition: GoNotificationType.h:23
GoPxLSdkClass
#define GoPxLSdkClass
Definition: Def.h:35
Def.h
Declares the general SDK definitions.
GoPxLSdk::GoNotificationType
Definition: GoNotificationType.h:17
GoPxLSdk::GoNotificationType::operator!=
constexpr bool operator!=(GoNotificationType t) const
Definition: GoNotificationType.h:33
GoPxLSdk::GoNotificationType::Type
Type
Definition: GoNotificationType.h:20
GoPxLSdk::GoNotificationType::operator==
constexpr bool operator==(GoNotificationType t) const
Definition: GoNotificationType.h:32
GoPxLSdk
Definition: Def.h:46
GoPxLSdk::GoNotificationType::GoNotificationType
constexpr GoNotificationType(Type type)
Definition: GoNotificationType.h:29
GoPxLSdk::GoNotificationType::Created
A resource was created.
Definition: GoNotificationType.h:22