@@ -42,6 +42,8 @@ public class Trigger
42
42
string MikuliveEventTriggerPath = $ "{ workpath } /eventController/MikuLiveEvent/Triggers/";
43
43
string PrinnyJackTriggerPath = $ "{ workpath } /eventController/PrinnyJack/Triggers/";
44
44
string RollyJukeboxTriggerPath = $ "{ workpath } /eventController/RollyJukebox/Triggers/";
45
+ string SCEAsiaChristmas2010OBJTrigger = $ "{ workpath } /eventController/Christmas/2010/OBJTrig/Triggers/";
46
+ string SCEAsiaChristmas2010SnowFall = $ "{ workpath } /eventController/Christmas/2010/Snowfall/Triggers/";
45
47
string SonyAquariumRelocatorTriggerPath = $ "{ workpath } /eventController/SonyAquarium/Relocator/Triggers/";
46
48
string SonyAquariumVideoConfigTriggerPath = $ "{ workpath } /eventController/SonyAquarium/VideoConfig/Triggers/";
47
49
@@ -1156,6 +1158,99 @@ public class Trigger
1156
1158
}
1157
1159
#endregion
1158
1160
1161
+ #region SCEAsia Xmas 2010 Obj Trigger PUBLIC
1162
+ case "305" :
1163
+ string SCEAsiaXmasObjTriggerPUBLICTriggerPath = SCEAsiaChristmas2010OBJTrigger + "getEventTrigger.xml" ;
1164
+ if ( File . Exists ( SCEAsiaXmasObjTriggerPUBLICTriggerPath ) )
1165
+ {
1166
+ LoggerAccessor . LogInfo ( $ "[PREMIUMAGENCY] - GetEventTrigger sent for PUBLIC SCEAsia Christmas 2010 OBJ Trigger { eventId } !") ;
1167
+ string res = File . ReadAllText ( SCEAsiaXmasObjTriggerPUBLICTriggerPath ) ;
1168
+ return "<xml>\r \n \t " +
1169
+ "<result type=\" int\" >1</result>\r \n \t " +
1170
+ "<description type=\" text\" >Success</description>\r \n \t " +
1171
+ "<error_no type=\" int\" >0</error_no>\r \n \t " +
1172
+ "<error_message type=\" text\" >None</error_message>\r \n \r \n \t " +
1173
+ $ "<trigger_count type=\" int\" >{ readcnt } </trigger_count>\r \n \t " +
1174
+ $ "{ res } \r \n " +
1175
+ "</xml>" ;
1176
+ }
1177
+ else
1178
+ {
1179
+ LoggerAccessor . LogInfo ( $ "[PREMIUMAGENCY] - GetEventTrigger FALLBACK sent for SCEAsia Christmas 2010 OBJ Trigger { eventId } !\n Expected path { SCEAsiaXmasObjTriggerPUBLICTriggerPath } ") ;
1180
+ return "<xml>\r \n " +
1181
+ "<result type=\" int\" >1</result>\r \n " +
1182
+ "<description type=\" text\" >Success</description>\r \n " +
1183
+ "<error_no type=\" int\" >0</error_no>\r \n " +
1184
+ "<error_message type=\" text\" >None</error_message>\r \n " +
1185
+ $ "<trigger_count type=\" int\" >{ readcnt } </trigger_count>\r \n \t " +
1186
+ "<trigger_time>\r \n \t \t " +
1187
+ "<trigger_id type=\" int\" >1</trigger_id>\r \n " +
1188
+ "\r \n \t \t <!-- Event Start Trigger --> \r \n \t \t " +
1189
+ "<start_year type=\" int\" >2024</start_year>\r \n \t \t " +
1190
+ "<start_month type=\" int\" >01</start_month>\r \n \t \t " +
1191
+ "<start_day type=\" int\" >15</start_day>\r \n \t \t " +
1192
+ "<start_hour type=\" int\" >00</start_hour>\r \n \t \t " +
1193
+ "<start_minutes type=\" int\" >00</start_minutes>\r \n \t \t " +
1194
+ "<start_second type=\" int\" >00</start_second>\r \n \r \n \t \t " +
1195
+ "<end_year type=\" int\" >2124</end_year>\r \n \t \t " +
1196
+ "<end_month type=\" int\" >02</end_month>\r \n \t \t " +
1197
+ "<end_day type=\" int\" >20</end_day>\r \n \t \t " +
1198
+ "<end_hour type=\" int\" >05</end_hour>\r \n \t \t " +
1199
+ "<end_minutes type=\" int\" >45</end_minutes>\r \n \t \t " +
1200
+ "<end_second type=\" int\" >0</end_second>\r \n \r \n \t \t " +
1201
+ "<trigger_flag type=\" int\" >1</trigger_flag>\r \n \t " +
1202
+ "</trigger_time>\r \n " +
1203
+ "</xml>" ;
1204
+ }
1205
+ #endregion
1206
+
1207
+ #region SCEAsia Xmas 2010 Snow Fall PUBLIC
1208
+ case "306" :
1209
+ string SCEAsiaXmasSnowFallPUBLICTriggerPath = SCEAsiaChristmas2010SnowFall + "getEventTrigger.xml" ;
1210
+ if ( File . Exists ( SCEAsiaXmasSnowFallPUBLICTriggerPath ) )
1211
+ {
1212
+ LoggerAccessor . LogInfo ( $ "[PREMIUMAGENCY] - GetEventTrigger sent for PUBLIC SCEAsia Christmas 2010 Snowfall { eventId } !") ;
1213
+ string res = File . ReadAllText ( SCEAsiaXmasSnowFallPUBLICTriggerPath ) ;
1214
+ return "<xml>\r \n \t " +
1215
+ "<result type=\" int\" >1</result>\r \n \t " +
1216
+ "<description type=\" text\" >Success</description>\r \n \t " +
1217
+ "<error_no type=\" int\" >0</error_no>\r \n \t " +
1218
+ "<error_message type=\" text\" >None</error_message>\r \n \r \n \t " +
1219
+ $ "<trigger_count type=\" int\" >{ readcnt } </trigger_count>\r \n \t " +
1220
+ $ "{ res } \r \n " +
1221
+ "</xml>" ;
1222
+ }
1223
+ else
1224
+ {
1225
+ LoggerAccessor . LogInfo ( $ "[PREMIUMAGENCY] - GetEventTrigger FALLBACK sent for PUBLIC SCEAsia Christmas 2010 Snowfall { eventId } !\n Expected path { SCEAsiaXmasSnowFallPUBLICTriggerPath } ") ;
1226
+ return "<xml>\r \n " +
1227
+ "<result type=\" int\" >1</result>\r \n " +
1228
+ "<description type=\" text\" >Success</description>\r \n " +
1229
+ "<error_no type=\" int\" >0</error_no>\r \n " +
1230
+ "<error_message type=\" text\" >None</error_message>\r \n " +
1231
+ $ "<trigger_count type=\" int\" >{ readcnt } </trigger_count>\r \n \t " +
1232
+ "<trigger_time>\r \n \t \t " +
1233
+ "<trigger_id type=\" int\" >1</trigger_id>\r \n " +
1234
+ "\r \n \t \t <!-- Event Start Trigger --> \r \n \t \t " +
1235
+ "<start_year type=\" int\" >2024</start_year>\r \n \t \t " +
1236
+ "<start_month type=\" int\" >01</start_month>\r \n \t \t " +
1237
+ "<start_day type=\" int\" >15</start_day>\r \n \t \t " +
1238
+ "<start_hour type=\" int\" >00</start_hour>\r \n \t \t " +
1239
+ "<start_minutes type=\" int\" >00</start_minutes>\r \n \t \t " +
1240
+ "<start_second type=\" int\" >00</start_second>\r \n \r \n \t \t " +
1241
+ "<end_year type=\" int\" >2124</end_year>\r \n \t \t " +
1242
+ "<end_month type=\" int\" >02</end_month>\r \n \t \t " +
1243
+ "<end_day type=\" int\" >20</end_day>\r \n \t \t " +
1244
+ "<end_hour type=\" int\" >05</end_hour>\r \n \t \t " +
1245
+ "<end_minutes type=\" int\" >45</end_minutes>\r \n \t \t " +
1246
+ "<end_second type=\" int\" >0</end_second>\r \n \r \n \t \t " +
1247
+ "<trigger_flag type=\" int\" >1</trigger_flag>\r \n \t " +
1248
+ "</trigger_time>\r \n " +
1249
+ "</xml>" ;
1250
+ }
1251
+ #endregion
1252
+
1253
+
1159
1254
default :
1160
1255
{
1161
1256
LoggerAccessor . LogError ( $ "[PREMIUMAGENCY] - GetEventTrigger unhandled for eventId { eventId } | POSTDATA: \n { Encoding . UTF8 . GetString ( PostData ) } ") ;
@@ -1262,6 +1357,8 @@ public class Trigger
1262
1357
string RainbowEventTriggerPath = $ "{ workpath } /eventController/MikuLiveEvent/Triggers/";
1263
1358
string PrinnyJackTriggerPath = $ "{ workpath } /eventController/PrinnyJack/Triggers/";
1264
1359
string RollyJukeboxTriggerPath = $ "{ workpath } /eventController/RollyJukebox/Triggers/";
1360
+ string SCEAsiaChristmas2010OBJTrigger = $ "{ workpath } /eventController/Christmas/2010/OBJTrig/Triggers/";
1361
+ string SCEAsiaChristmas2010SnowFall = $ "{ workpath } /eventController/Christmas/2010/Snowfall/Triggers/";
1265
1362
string SceasiaDistributionTriggerPath = $ "{ workpath } /eventController/Distribution/SCEAsia/lounge/Triggers/";
1266
1363
string SonyAquariumRelocatorTriggerPath = $ "{ workpath } /eventController/SonyAquarium/Relocator/Triggers/";
1267
1364
string SonyAquariumVideoConfigTriggerPath = $ "{ workpath } /eventController/SonyAquarium/VideoConfig/Triggers/";
@@ -1284,7 +1381,8 @@ public class Trigger
1284
1381
"<error_message type=\" text\" >None</error_message>\r \n \r \n \t " +
1285
1382
$ "{ res } \r \n " +
1286
1383
"</xml>" ;
1287
- } else
1384
+ }
1385
+ else
1288
1386
{
1289
1387
LoggerAccessor . LogInfo ( $ "[PREMIUMAGENCY] - ConfirmEventTrigger FALLBACK sent for QA MikuLiveJack { eventId } !\n Expected path { MikuliveJackQATriggerPath } ") ;
1290
1388
return "<xml>\r \n " +
@@ -2820,11 +2918,95 @@ public class Trigger
2820
2918
}
2821
2919
#endregion
2822
2920
2921
+ #region SCEAsia Christmas 2010 OBJ Trigger PUBLIC
2922
+ case "305" :
2923
+ string SCEAsiaXmasOBJTriggerPUBLICTriggerPath = SCEAsiaChristmas2010OBJTrigger + "confirmEventTrigger.xml" ;
2924
+ if ( File . Exists ( SCEAsiaXmasOBJTriggerPUBLICTriggerPath ) )
2925
+ {
2926
+ LoggerAccessor . LogInfo ( $ "[PREMIUMAGENCY] - ConfirmEventTrigger sent for PUBLIC SCEAsia Christmas 2010 OBJ Trigger { eventId } !") ;
2927
+ string res = File . ReadAllText ( SCEAsiaXmasOBJTriggerPUBLICTriggerPath ) ;
2928
+ return "<xml>\r \n \t " +
2929
+ "<result type=\" int\" >1</result>\r \n \t " +
2930
+ "<description type=\" text\" >Success</description>\r \n \t " +
2931
+ "<error_no type=\" int\" >0</error_no>\r \n \t " +
2932
+ "<error_message type=\" text\" >None</error_message>\r \n \r \n \t " +
2933
+ $ "{ res } \r \n " +
2934
+ "</xml>" ;
2935
+ }
2936
+ else
2937
+ {
2938
+ LoggerAccessor . LogInfo ( $ "[PREMIUMAGENCY] - ConfirmEventTrigger FALLBACK sent for PUBLIC SCEAsia Christmas 2010 OBJ Trigger { eventId } !\n Expected path { SCEAsiaXmasOBJTriggerPUBLICTriggerPath } ") ;
2939
+ return "<xml>\r \n " +
2940
+ "<result type=\" int\" >1</result>\r \n " +
2941
+ "<description type=\" text\" >Success</description>\r \n " +
2942
+ "<error_no type=\" int\" >0</error_no>\r \n " +
2943
+ "<error_message type=\" text\" >None</error_message>\r \n " +
2944
+ "<is_active type=\" bool\" >true</is_active>\r \n " +
2945
+ "<trigger_id type=\" int\" >1</trigger_id>\r \n \r \n " +
2946
+ "<start_year type=\" int\" >2023</start_year>\r \n " +
2947
+ "<start_month type=\" int\" >09</start_month>\r \n " +
2948
+ "<start_day type=\" int\" >12</start_day>\r \n " +
2949
+ "<start_hour type=\" int\" >08</start_hour>\r \n " +
2950
+ "<start_minutes type=\" int\" >00</start_minutes>\r \n " +
2951
+ "<start_second type=\" int\" >0</start_second>\r \n \r \n " +
2952
+ "<end_year type=\" int\" >2100</end_year>\r \n " +
2953
+ "<end_month type=\" int\" >09</end_month>\r \n " +
2954
+ "<end_day type=\" int\" >17</end_day>\r \n " +
2955
+ "<end_hour type=\" int\" >00</end_hour>\r \n " +
2956
+ "<end_minutes type=\" int\" >30</end_minutes>\r \n " +
2957
+ "<end_second type=\" int\" >0</end_second>\r \n \r \n " +
2958
+ "<trigger_flag type=\" int\" >999</trigger_flag>\r \n \r \n " +
2959
+ "</xml>" ;
2960
+ }
2961
+ #endregion
2962
+
2963
+ #region SCEAsia Christmas 2010 SnowFall PUBLIC
2964
+ case "306" :
2965
+ string SCEAsiaXmasSnowFallPUBLICTriggerPath = SCEAsiaChristmas2010SnowFall + "confirmEventTrigger.xml" ;
2966
+ if ( File . Exists ( SCEAsiaXmasSnowFallPUBLICTriggerPath ) )
2967
+ {
2968
+ LoggerAccessor . LogInfo ( $ "[PREMIUMAGENCY] - ConfirmEventTrigger sent for PUBLIC SCEAsia Christmas 2010 SnowFall 2010 { eventId } !") ;
2969
+ string res = File . ReadAllText ( SCEAsiaXmasSnowFallPUBLICTriggerPath ) ;
2970
+ return "<xml>\r \n \t " +
2971
+ "<result type=\" int\" >1</result>\r \n \t " +
2972
+ "<description type=\" text\" >Success</description>\r \n \t " +
2973
+ "<error_no type=\" int\" >0</error_no>\r \n \t " +
2974
+ "<error_message type=\" text\" >None</error_message>\r \n \r \n \t " +
2975
+ $ "{ res } \r \n " +
2976
+ "</xml>" ;
2977
+ }
2978
+ else
2979
+ {
2980
+ LoggerAccessor . LogInfo ( $ "[PREMIUMAGENCY] - ConfirmEventTrigger FALLBACK sent for PUBLIC SCEAsia Christmas 2010 SnowFall 2010 { eventId } !\n Expected path { SCEAsiaXmasSnowFallPUBLICTriggerPath } ") ;
2981
+ return "<xml>\r \n " +
2982
+ "<result type=\" int\" >1</result>\r \n " +
2983
+ "<description type=\" text\" >Success</description>\r \n " +
2984
+ "<error_no type=\" int\" >0</error_no>\r \n " +
2985
+ "<error_message type=\" text\" >None</error_message>\r \n " +
2986
+ "<is_active type=\" bool\" >true</is_active>\r \n " +
2987
+ "<trigger_id type=\" int\" >1</trigger_id>\r \n \r \n " +
2988
+ "<start_year type=\" int\" >2023</start_year>\r \n " +
2989
+ "<start_month type=\" int\" >09</start_month>\r \n " +
2990
+ "<start_day type=\" int\" >12</start_day>\r \n " +
2991
+ "<start_hour type=\" int\" >08</start_hour>\r \n " +
2992
+ "<start_minutes type=\" int\" >00</start_minutes>\r \n " +
2993
+ "<start_second type=\" int\" >0</start_second>\r \n \r \n " +
2994
+ "<end_year type=\" int\" >2100</end_year>\r \n " +
2995
+ "<end_month type=\" int\" >09</end_month>\r \n " +
2996
+ "<end_day type=\" int\" >17</end_day>\r \n " +
2997
+ "<end_hour type=\" int\" >00</end_hour>\r \n " +
2998
+ "<end_minutes type=\" int\" >30</end_minutes>\r \n " +
2999
+ "<end_second type=\" int\" >0</end_second>\r \n \r \n " +
3000
+ "<trigger_flag type=\" int\" >999</trigger_flag>\r \n \r \n " +
3001
+ "</xml>" ;
3002
+ }
3003
+ #endregion
3004
+
2823
3005
default :
2824
- {
2825
- LoggerAccessor . LogError ( $ "[PREMIUMAGENCY] - ConfirmEventTrigger unhandled with eventId { eventId } contact the developers! \n POSTDATA: \n { Encoding . UTF8 . GetString ( PostData ) } ") ;
2826
- return null ;
2827
- }
3006
+ {
3007
+ LoggerAccessor . LogError ( $ "[PREMIUMAGENCY] - ConfirmEventTrigger unhandled with eventId { eventId } contact the developers! \n POSTDATA: \n { Encoding . UTF8 . GetString ( PostData ) } ") ;
3008
+ return null ;
3009
+ }
2828
3010
}
2829
3011
2830
3012
}
0 commit comments