File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -118,28 +118,24 @@ public string ParentClass
118118 /// </summary>
119119 public string Name
120120 {
121- get => _name ;
121+ get { return _name ; }
122122 set
123123 {
124124 _name = value ;
125- IsRequest = Name . StartsWith ( "Req" ) || Name . StartsWith ( "C2S_" ) ;
125+ IsRequest = Name . StartsWith ( "Req" ) ;
126126 IsNotify = Name . StartsWith ( "Notify" ) ;
127127 IsHeartbeat = Name . Contains ( "Heartbeat" , StringComparison . OrdinalIgnoreCase ) ;
128- IsResponse = Name . StartsWith ( "Resp" ) || Name . StartsWith ( "S2C_" ) || IsNotify || ( IsHeartbeat && ! IsRequest ) ;
128+ IsResponse = Name . StartsWith ( "Resp" ) || IsNotify || ( IsHeartbeat && ! IsRequest ) ;
129129 if ( IsRequest )
130130 {
131131 if ( Name . StartsWith ( "Req" ) )
132132 {
133133 MessageName = Name [ 3 ..] ;
134134 }
135- else if ( Name . StartsWith ( "C2S_" ) )
136- {
137- MessageName = Name [ 4 ..] ;
138- }
139135 }
140136 else
141137 {
142- if ( Name . StartsWith ( "Resp" ) || Name . StartsWith ( "S2C_" ) )
138+ if ( Name . StartsWith ( "Resp" ) )
143139 {
144140 MessageName = Name [ 4 ..] ;
145141 }
You can’t perform that action at this time.
0 commit comments