Table of Contents

Class AppClanInfoToModel

Namespace
RustPlusApi.Extensions
Assembly
RustPlusApi.dll

Mapping extensions from protobuf clan-info messages to clan model types.

public static class AppClanInfoToModel
Inheritance
AppClanInfoToModel
Inherited Members

Methods

ToClanChangedEvent(AppClanChanged)

Maps an RustPlusContracts.AppClanChanged broadcast to a ClanChangedEventArg.

public static ClanChangedEventArg ToClanChangedEvent(this AppClanChanged appClanChanged)

Parameters

appClanChanged AppClanChanged

The protobuf clan-changed broadcast.

Returns

ClanChangedEventArg

ToClanInfo(AppClanInfo)

Maps an RustPlusContracts.AppClanInfo response to a ClanInfo.

public static ClanInfo? ToClanInfo(this AppClanInfo appClanInfo)

Parameters

appClanInfo AppClanInfo

The protobuf clan info response.

Returns

ClanInfo

ToClanInfo(ClanInfo?)

Maps a RustPlusContracts.ClanInfo to a ClanInfo, or null if the source is null.

public static ClanInfo? ToClanInfo(this ClanInfo? clanInfo)

Parameters

clanInfo ClanInfo

The protobuf clan info, or null.

Returns

ClanInfo

ToClanInvite(Invite)

Maps a single protobuf clan invite to a ClanInvite.

public static ClanInvite ToClanInvite(this ClanInfo.Invite invite)

Parameters

invite ClanInfo.Invite

The protobuf clan invite.

Returns

ClanInvite

ToClanInvites(IEnumerable<Invite>)

Maps a sequence of protobuf clan invites to ClanInvite instances.

public static IEnumerable<ClanInvite> ToClanInvites(this IEnumerable<ClanInfo.Invite> invites)

Parameters

invites IEnumerable<ClanInfo.Invite>

The protobuf clan invites to map.

Returns

IEnumerable<ClanInvite>

ToClanMember(Member)

Maps a single protobuf clan member to a ClanMember.

public static ClanMember ToClanMember(this ClanInfo.Member member)

Parameters

member ClanInfo.Member

The protobuf clan member.

Returns

ClanMember

ToClanMembers(IEnumerable<Member>)

Maps a sequence of protobuf clan members to ClanMember instances.

public static IEnumerable<ClanMember> ToClanMembers(this IEnumerable<ClanInfo.Member> members)

Parameters

members IEnumerable<ClanInfo.Member>

The protobuf clan members to map.

Returns

IEnumerable<ClanMember>

ToClanRole(Role)

Maps a single protobuf clan role to a ClanRole.

public static ClanRole ToClanRole(this ClanInfo.Role role)

Parameters

role ClanInfo.Role

The protobuf clan role.

Returns

ClanRole

ToClanRoles(IEnumerable<Role>)

Maps a sequence of protobuf clan roles to ClanRole instances.

public static IEnumerable<ClanRole> ToClanRoles(this IEnumerable<ClanInfo.Role> roles)

Parameters

roles IEnumerable<ClanInfo.Role>

The protobuf clan roles to map.

Returns

IEnumerable<ClanRole>