Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
NotificationResponse.cs
1
using
System;
2
using
Waher.Content.Getters
;
3
4
namespace
Waher.Networking.HTTP.Firebase
5
{
9
public
class
NotificationResponse
10
{
14
public
NotificationResponse
()
15
{
16
this.ServerError =
false
;
17
this.TransmissionError =
false
;
18
this.Ok =
true
;
19
this.Error =
false
;
20
this.ErrorMessage =
string
.Empty;
21
this.Exception =
null
;
22
}
23
28
public
NotificationResponse
(
WebException
ex)
29
: this((
Exception
)ex)
30
{
31
this.ServerError =
true
;
32
this.TransmissionError =
false
;
33
}
34
40
public
NotificationResponse
(
WebException
ex,
string
ErrorMessage
)
41
: this((
Exception
)ex)
42
{
43
this.ServerError =
true
;
44
this.TransmissionError =
false
;
45
this.ErrorMessage =
ErrorMessage
;
46
}
47
52
public
NotificationResponse
(
Exception
ex)
53
{
54
this.ServerError =
false
;
55
this.TransmissionError =
true
;
56
this.Ok =
false
;
57
this.Error =
true
;
58
this.ErrorMessage =
ErrorMessage
;
59
this.Exception = ex;
60
}
61
65
public
bool
Ok
{
get
;
private
set
; }
66
70
public
bool
Error
{
get
;
private
set
; }
71
75
public
bool
ServerError
{
get
;
private
set
; }
76
80
public
bool
TransmissionError
{
get
;
private
set
; }
81
85
public
string
ErrorMessage
{
get
;
private
set
; }
86
90
public
Exception
Exception
{
get
;
private
set
; }
91
}
92
}
Waher.Content.Getters.WebException
Exception class for web exceptions.
Definition:
WebException.cs:11
Waher.Networking.HTTP.Firebase.NotificationResponse
Firebase response to sending a notification message.
Definition:
NotificationResponse.cs:10
Waher.Networking.HTTP.Firebase.NotificationResponse.TransmissionError
bool TransmissionError
If error occurred during transmission.
Definition:
NotificationResponse.cs:80
Waher.Networking.HTTP.Firebase.NotificationResponse.NotificationResponse
NotificationResponse()
Notification send successfully.
Definition:
NotificationResponse.cs:14
Waher.Networking.HTTP.Firebase.NotificationResponse.Ok
bool Ok
If notification was successfully sent.
Definition:
NotificationResponse.cs:65
Waher.Networking.HTTP.Firebase.NotificationResponse.NotificationResponse
NotificationResponse(Exception ex)
Error occurred while attempting to send notification.
Definition:
NotificationResponse.cs:52
Waher.Networking.HTTP.Firebase.NotificationResponse.Error
bool Error
If notification was unable to be sent.
Definition:
NotificationResponse.cs:70
Waher.Networking.HTTP.Firebase.NotificationResponse.NotificationResponse
NotificationResponse(WebException ex, string ErrorMessage)
Error returned from server.
Definition:
NotificationResponse.cs:40
Waher.Networking.HTTP.Firebase.NotificationResponse.ServerError
bool ServerError
If error was returned by server.
Definition:
NotificationResponse.cs:75
Waher.Networking.HTTP.Firebase.NotificationResponse.NotificationResponse
NotificationResponse(WebException ex)
Error returned from server.
Definition:
NotificationResponse.cs:28
Waher.Networking.HTTP.Firebase.NotificationResponse.ErrorMessage
string ErrorMessage
Any error message, if Error is true.
Definition:
NotificationResponse.cs:85
Waher.Networking.HTTP.Firebase.NotificationResponse.Exception
Exception Exception
Any exception object, if Error is true.
Definition:
NotificationResponse.cs:90
Waher.Content.Getters
Definition:
DataGetter.cs:9
Waher.Networking.HTTP.Firebase
Definition:
FirebaseClient.cs:13
Waher.Networking.HTTP.Firebase
NotificationResponse.cs
Generated by
1.9.5