void VJSSession::_getID( XBOX::VJSParms_getProperty& ioParms, CUAGSession* inSession) { VString s; VUUID xid; inSession->GetID(xid); xid.GetString(s); ioParms.ReturnString(s); }
void VJSDirectory::_setLoginListener(VJSParms_callStaticFunction& ioParms, CUAGDirectory* inDirectory) { VError err; VString listenerRef; if (ioParms.IsStringParam(1)) { ioParms.GetStringParam(1, listenerRef); VString groupRef; CUAGGroup* group = ioParms.GetParamObjectPrivateData<VJSGroup>(2); if (group == NULL) ioParms.GetStringParam(2, groupRef); else { VUUID xid; group->GetID(xid); xid.GetString(groupRef); } inDirectory->SetLoginListener(listenerRef, groupRef); } else XBOX::vThrowError(XBOX::VE_JVSC_WRONG_PARAMETER_TYPE_STRING, "1"); }