public void Set(PresenceModificationSetStatusOptions other) { if (other != null) { m_ApiVersion = PresenceModification.PresencemodificationSetstatusApiLatest; Status = other.Status; } }
/// <summary> /// Modifies a user's online status to be the new state. /// </summary> /// <param name="options">Object containing properties related to setting a user's Status</param> /// <returns> /// Success if modification was added successfully, otherwise an error code related to the problem /// </returns> public Result SetStatus(PresenceModificationSetStatusOptions options) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <PresenceModificationSetStatusOptionsInternal, PresenceModificationSetStatusOptions>(ref optionsAddress, options); var funcResult = EOS_PresenceModification_SetStatus(InnerHandle, optionsAddress); Helper.TryMarshalDispose(ref optionsAddress); return(funcResult); }