@@ -24,7 +24,7 @@ public class MessageBuilder
24
24
/// <param name="to"></param>
25
25
public MessageBuilder ( string messageText , string from , params string [ ] to )
26
26
{
27
- this . _message = new Message
27
+ _message = new Message
28
28
{
29
29
Body = new Body
30
30
{
@@ -44,8 +44,8 @@ public MessageBuilder(string messageText, string from, params string[] to)
44
44
/// <returns></returns>
45
45
public Message Build ( )
46
46
{
47
- this . _message . RichContent = this . _richContent ;
48
- return this . _message ;
47
+ _message . RichContent = _richContent ;
48
+ return _message ;
49
49
}
50
50
51
51
/// <summary>
@@ -59,7 +59,7 @@ public Message Build()
59
59
/// </remarks>
60
60
public MessageBuilder WithAllowedChannels ( params Channel [ ] channels )
61
61
{
62
- this . _message . AllowedChannels = channels ;
62
+ _message . AllowedChannels = channels ;
63
63
return this ;
64
64
}
65
65
@@ -70,7 +70,7 @@ public MessageBuilder WithAllowedChannels(params Channel[] channels)
70
70
/// <returns></returns>
71
71
public MessageBuilder WithReference ( string reference )
72
72
{
73
- this . _message . Reference = reference ;
73
+ _message . Reference = reference ;
74
74
return this ;
75
75
}
76
76
@@ -97,7 +97,7 @@ public MessageBuilder WithReference(string reference)
97
97
/// <returns></returns>
98
98
public MessageBuilder WithValidityPeriod ( string period )
99
99
{
100
- this . _message . Validity = period ;
100
+ _message . Validity = period ;
101
101
return this ;
102
102
}
103
103
@@ -110,10 +110,10 @@ public MessageBuilder WithValidityPeriod(string period)
110
110
/// <returns></returns>
111
111
public MessageBuilder WithRichMessage ( IRichMessage richMessage )
112
112
{
113
- if ( this . _richContent == null )
114
- this . _richContent = new RichContent ( ) ;
113
+ if ( _richContent == null )
114
+ _richContent = new RichContent ( ) ;
115
115
116
- this . _richContent . AddConversationPart ( richMessage ) ;
116
+ _richContent . AddConversationPart ( richMessage ) ;
117
117
return this ;
118
118
}
119
119
@@ -125,10 +125,10 @@ public MessageBuilder WithRichMessage(IRichMessage richMessage)
125
125
/// <returns></returns>
126
126
public MessageBuilder WithSuggestions ( params SuggestionBase [ ] suggestions )
127
127
{
128
- if ( this . _richContent == null )
129
- this . _richContent = new RichContent ( ) ;
128
+ if ( _richContent == null )
129
+ _richContent = new RichContent ( ) ;
130
130
131
- this . _richContent . Suggestions = suggestions ;
131
+ _richContent . Suggestions = suggestions ;
132
132
return this ;
133
133
}
134
134
@@ -138,7 +138,7 @@ public MessageBuilder WithSuggestions(params SuggestionBase[] suggestions)
138
138
/// </summary>
139
139
public MessageBuilder WitHybridAppKey ( Guid appKey )
140
140
{
141
- this . _message . HybridAppKey = appKey ;
141
+ _message . HybridAppKey = appKey ;
142
142
return this ;
143
143
}
144
144
@@ -150,10 +150,10 @@ public MessageBuilder WitHybridAppKey(Guid appKey)
150
150
/// <returns></returns>
151
151
public MessageBuilder WithTemplate ( TemplateMessage template )
152
152
{
153
- if ( this . _richContent == null )
154
- this . _richContent = new RichContent ( ) ;
153
+ if ( _richContent == null )
154
+ _richContent = new RichContent ( ) ;
155
155
156
- this . _richContent . AddConversationPart ( template ) ;
156
+ _richContent . AddConversationPart ( template ) ;
157
157
return this ;
158
158
}
159
159
@@ -164,10 +164,10 @@ public MessageBuilder WithTemplate(TemplateMessage template)
164
164
/// <returns></returns>
165
165
public MessageBuilder WithInteractive ( WhatsAppInteractiveMessage interactive )
166
166
{
167
- if ( this . _richContent == null )
168
- this . _richContent = new RichContent ( ) ;
167
+ if ( _richContent == null )
168
+ _richContent = new RichContent ( ) ;
169
169
170
- this . _richContent . AddConversationPart ( interactive ) ;
170
+ _richContent . AddConversationPart ( interactive ) ;
171
171
return this ;
172
172
}
173
173
@@ -178,10 +178,10 @@ public MessageBuilder WithInteractive(WhatsAppInteractiveMessage interactive)
178
178
/// <returns></returns>
179
179
public MessageBuilder WithApplePay ( ApplePayRequest applePayRequest )
180
180
{
181
- if ( this . _richContent == null )
182
- this . _richContent = new RichContent ( ) ;
181
+ if ( _richContent == null )
182
+ _richContent = new RichContent ( ) ;
183
183
184
- this . _richContent . AddConversationPart ( applePayRequest ) ;
184
+ _richContent . AddConversationPart ( applePayRequest ) ;
185
185
return this ;
186
186
}
187
187
}
0 commit comments