public void Set(ATTWorkMode_t mode, int code) { this.update = DateTime.Now; this.lstate = this.cstate; this.cstate = new StausAgentItem() { status = mode, code = code }; }
public Task <NullTsapiReturn> SetAgentState(string deviceId, string agentId, string agentGroup, string lpassword, AgentMode_t mode, ATTWorkMode_t wmode, int reasonCode) { return(CreateTask <NullTsapiReturn>((invokeId, pd) => NativeMethods.attSetAgentStateExt(ref pd, wmode, reasonCode) | NativeMethods.cstaSetAgentState(AcsHandle, invokeId, deviceId, mode, agentId, agentGroup, lpassword, ref pd), $"SetAgentState('{deviceId}','{agentId}','{agentGroup}','{lpassword}','{mode}','{wmode}','{reasonCode}')" )); }
protected void changeStatusAgent(AgentMode_t type, ATTWorkMode_t mode, int code) { this.tsapi.setAgentStateAsync(this.device.getDeviceId(), this.agent, "", this.password, type, mode, code, new resultDefault(delegate(eventArg arg) { if (arg.error == CSTAUniversalFailure_t.allOK) { this.setStatus(mode, code); } })); }
public static extern ACSFunctionRet_t attV6SetAgentState(ref PrivateData_t privateData, ATTWorkMode_t workMode, int reasonCode, byte enablePending);
public static extern ACSFunctionRet_t attSetAgentStateExt(ref PrivateData_t privateData, ATTWorkMode_t workMode, int reasonCode);
public static extern Acs.RetCode_t attV6SetAgentState( [In, Out] Acs.PrivateData_t privateData, ATTWorkMode_t workMode, int reasonCode, bool enablePending);
public static extern Acs.RetCode_t attSetAgentState( [In, Out] Acs.PrivateData_t privateData, ATTWorkMode_t workMode, int reasonCode);
internal static extern int attV6SetAgentState(ref PrivateData_t privateData, ATTWorkMode_t workMode, int reasonCode, bool enablePending);
protected void setStatus(ATTWorkMode_t mode, int code) { this.status.Set(mode, code); }