Stream Chat Unreal SDK
Loading...
Searching...
No Matches
ConnectionChangedEvent.h
1// Copyright 2022 Stream.IO, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Event/Abstract/LocalEvent.h"
7
8#include "ConnectionChangedEvent.generated.h"
9
15USTRUCT()
17{
18 explicit FConnectionChangedEvent() = default;
19 explicit FConnectionChangedEvent(const bool bOnline) : FLocalEvent{StaticType()}, bOnline(bOnline)
20 {
21 }
22
23 GENERATED_BODY()
24
25 static FName StaticType()
26 {
27 static const FName Type{TEXT("connection.changed")};
28 return Type;
29 }
30
31 UPROPERTY()
32 bool bOnline = false;
33};
@ Type
Type of the message.
Sent when the state of the connection changed.
Definition: ConnectionChangedEvent.h:17
Event not originating from the API.
Definition: LocalEvent.h:15