Class EntityModificationHelper
Internal utility class for modifying entities state.
Namespace: TehGM.Wolfringo.Messages.Serialization.Internal
Assembly: Wolfringo.Core.dll
Syntax
public static class EntityModificationHelper
Remarks
It's not recommended to use this class at all, unless it's required for writing a custom client or serializer implementation.
Methods
| Improve this Doc View SourceRemoveGroupMember(WolfGroup, UInt32)
Removes group member from group member list.
Declaration
public static void RemoveGroupMember(WolfGroup group, uint memberID)
Parameters
Type | Name | Description |
---|---|---|
WolfGroup | group | Group to remove member from. |
UInt32 | memberID | User ID of member to remove. |
Remarks
It's not recommended to use this method at all, unless it's required for writing a custom client or serializer implementation.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ReplaceAllGroupMembers(WolfGroup, IEnumerable<WolfGroupMember>)
Replaces al group members with provided entities.
Declaration
public static void ReplaceAllGroupMembers(WolfGroup group, IEnumerable<WolfGroupMember> members)
Parameters
Type | Name | Description |
---|---|---|
WolfGroup | group | Group to replace members of. |
IEnumerable<WolfGroupMember> | members | Members to set as group members. |
Remarks
It's not recommended to use this method at all, unless it's required for writing a custom client or serializer implementation.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
SetGroupMember(WolfGroup, WolfGroupMember)
Updates one group member with provided entity.
Declaration
public static void SetGroupMember(WolfGroup group, WolfGroupMember member)
Parameters
Type | Name | Description |
---|---|---|
WolfGroup | group | Group to update group member in. |
WolfGroupMember | member | New member to add or update. |
Remarks
It's not recommended to use this method at all, unless it's required for writing a custom client or serializer implementation.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|