Пример #1
0
            public override MetaWearController addModuleCallback(ModuleCallbacks callback)
            {
                byte moduleOpcode = callback.getModule().modID;

                if (!moduleCallbackMap.ContainsKey(moduleOpcode))
                {
                    moduleCallbackMap[moduleOpcode] = new List <ModuleCallbacks>();
                }

                moduleCallbackMap[moduleOpcode].Add(callback);

                return(this);
            }
Пример #2
0
 public override void removeModuleCallback(ModuleCallbacks callback)
 {
     moduleCallbackMap[callback.getModule().modID].Remove(callback);
 }
Пример #3
0
 public abstract void removeModuleCallback(ModuleCallbacks callback);
Пример #4
0
 /**
  * Add a module callback for the broadcast receiver
  * @param callback Module callback to add
  * @return The calling object
  */
 public abstract MetaWearController addModuleCallback(ModuleCallbacks callback);