@@ -140,30 +140,30 @@ class MehModule extends Module<MehClient> {
140
140
console.on ('sendPackedMessage' , (_, __) {
141
141
/// GetResponse is just the name of response message of command Get.
142
142
/// It's declared in example-users.generated.dart.
143
- final GetResponse message = GetResponse ()
144
- .. email = '${randomString ()}@${randomString ()}.com'
145
- .. nickname = 'Mr. ${randomString ()}'
146
- .. hidden = false
147
- .. created = DateTime .now ()
148
- .. info = ( GetResponseInfo ()
149
- .. firstName = randomString ()
150
- .. lastName = randomString ()
151
- .. age = randomInt ()
152
- )
153
- .. social = ( GetResponseSocial ()
154
- .. facebookId = randomInt () < 128 ? 'fbID_${randomString ()}' : null
155
- .. twitterId = randomInt () < 128 ? 'twID_${randomString ()}' : null
156
- .. instagramId = randomInt () < 128 ? 'inID_${randomString ()}' : null
157
- )
158
- .. stats = ( GetResponseStats ()
159
- .. posts = randomInt ()
160
- .. comments = randomInt ()
161
- .. likes = randomInt () * 10
162
- .. dislikes = randomInt ()
163
- .. rating = randomInt () / 25.5
164
-
165
- )
166
- ..sessions = < GetResponseSession > [] ;
143
+ final GetResponse message = GetResponse (
144
+ email: '${randomString ()}@${randomString ()}.com' ,
145
+ nickname: 'Mr. ${randomString ()}' ,
146
+ hidden: false ,
147
+ created: DateTime .now (),
148
+ info: GetResponseInfo (
149
+ firstName: randomString (),
150
+ lastName: randomString (),
151
+ age: randomInt (),
152
+ ),
153
+ social: GetResponseSocial (
154
+ facebookId: randomInt () < 128 ? 'fbID_${randomString ()}' : null ,
155
+ twitterId: randomInt () < 128 ? 'twID_${randomString ()}' : null ,
156
+ instagramId: randomInt () < 128 ? 'inID_${randomString ()}' : null ,
157
+ ),
158
+ stats: GetResponseStats (
159
+ posts: randomInt (),
160
+ comments: randomInt (),
161
+ likes: randomInt () * 10 ,
162
+ dislikes: randomInt (),
163
+ rating: randomInt () / 25.5 ,
164
+ ),
165
+ sessions : < GetResponseSession > [],
166
+ ) ;
167
167
server.broadcast (message);
168
168
log ('Here is the message I sent:' , MAGENTA );
169
169
messageToStrings (message).forEach (log);
0 commit comments