SocketNotificationData
struct SocketNotificationData : ContentInforms Notification WebSocket clients of a new notification.
Each notification is delivered as a JSON string, containing a type of announcement and a string appropriate for displaying to the user. The string will be of the form, “User @authorName wrote a forum post that mentioned you.”
- 
                  
                  DeclarationSwift enum NotificationTypeData : Content
- 
                  
                  The type of event that happened. See SocketNotificationData.NotificationTypeDatafor values.DeclarationSwift var type: NotificationTypeData
- 
                  
                  A string describing what happened, suitable for adding to a notification alert. DeclarationSwift var info: String
- 
                  
                  An ID of an Announcement, Fez, Twarrt, ForumPost, or Event. DeclarationSwift var contentID: String
- 
                  
                  For .incomingPhoneCall notifications, the caller. DeclarationSwift var caller: UserHeader?
- 
                  
                  For .incomingPhoneCall notification,s the caller’s IP addresses. May be nil, in which case the receiver opens a server socket instead. DeclarationSwift var callerAddress: PhoneSocketServerAddress?
- 
                  
                  DeclarationSwift init(_ type: NotificationType, info: String, id: String)
- 
                  
                  DeclarationSwift init(callID: UUID, caller: UserHeader, callerAddr: PhoneSocketServerAddress?)
- 
                  
                  DeclarationSwift init(forCallEnded: UUID)
- 
                  
                  DeclarationSwift init(forCallAnswered: UUID)
 View on GitHub
            View on GitHub
           SocketNotificationData Structure Reference
      SocketNotificationData Structure Reference