/// <summary> /// @brief Create action item describing single action of the application /// /// An example of the action could be a "volume up" or "volume down" action. /// </summary> /// <param name="appInfo"> Sapa structure describing owner of the action </param> /// <param name="actionInfo"> Sapa structure describing action details /// </param> /// <returns> new instance of the FcActionItem </returns> public virtual FcActionItem newAppItem(SapaAppInfo appInfo, SapaActionInfo actionInfo) { FcActionAppItem item = new FcActionAppItem(actionInfo); SapaApp app = appInfo.App; item.ActionRunnable = newCallActionRunnable(app.InstanceId, actionInfo.Id); return item; }
/// <summary> /// @brief Create action item describing single action of the application /// /// An example of the action could be a "volume up" or "volume down" action. /// </summary> /// <param name="appInfo"> Sapa structure describing owner of the action </param> /// <param name="actionInfo"> Sapa structure describing action details /// </param> /// <returns> new instance of the FcActionItem </returns> public virtual FcActionItem newAppItem(SapaAppInfo appInfo, SapaActionInfo actionInfo) { FcActionAppItem item = new FcActionAppItem(actionInfo); SapaApp app = appInfo.App; item.ActionRunnable = newCallActionRunnable(app.InstanceId, actionInfo.Id); return(item); }
/// <summary> /// @brief Construct action item from the SapaActionInfo structure /// </summary> /// <param name="actionInfo"> Sapa structure describing action details </param> public FcActionAppItem(SapaActionInfo actionInfo) { mActionInfo = actionInfo; }