Example #1
0
        public override void Send()
        {
            var dicCaseList = new Dictionary <string, List <ActionCase> >();

            foreach (var stepAndCase in NiAcnTdoList)
            {
                var callTodoList =
                    new ActionCase {
                    Step = stepAndCase.Step, Cases = stepAndCase.Cases.Where(x => x.HasTlf && x.DebtorNo != null).Select(x => x).ToList()
                };

                if (!dicCaseList.ContainsKey(stepAndCase.Step.TemplateId))
                {
                    dicCaseList.Add(stepAndCase.Step.TemplateId, new List <ActionCase>());
                }

                dicCaseList[stepAndCase.Step.TemplateId].Add(callTodoList);
            }
            var TempalteIDThisTime = dicCaseList.Keys.FirstOrDefault();

            if (!string.IsNullOrEmpty(TempalteIDThisTime))
            {
                ActionOperator.ActionOperation(dicCaseList[TempalteIDThisTime]);
            }
        }
Example #2
0
 public static Offset <Event> CreateEvent(FlatBufferBuilder builder,
                                          EventType eventType           = EventType.Hold,
                                          ActionOperator actionOperator = ActionOperator.Or,
                                          KeyID kCode            = KeyID.SDL_SCANCODE_UNKNOWN,
                                          MouseBottonID mouseBtn = MouseBottonID.NONE,
                                          MouseWheelEvent mWheel = MouseWheelEvent.NONE,
                                          ushort joyAxis         = 0,
                                          short joyBtn           = -1)
 {
     builder.StartObject(7);
     Event.AddJoyBtn(builder, joyBtn);
     Event.AddJoyAxis(builder, joyAxis);
     Event.AddMWheel(builder, mWheel);
     Event.AddMouseBtn(builder, mouseBtn);
     Event.AddKCode(builder, kCode);
     Event.AddActionOperator(builder, actionOperator);
     Event.AddEventType(builder, eventType);
     return(Event.EndEvent(builder));
 }
Example #3
0
 public override void Send()
 {
     ActionOperator.ActionOperation(NiAcnTdoList);
 }
Example #4
0
 public static void AddActionOperator(FlatBufferBuilder builder, ActionOperator actionOperator)
 {
     builder.AddUshort(1, (ushort)actionOperator, 0);
 }