Table of Contents

Class AppClanChatToModel

Namespace
RustPlusApi.Extensions
Assembly
RustPlusApi.dll

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

public static class AppClanChatToModel
Inheritance
AppClanChatToModel
Inherited Members

Methods

ToClanChatInfo(AppClanChat)

Maps an RustPlusContracts.AppClanChat to a ClanChatInfo.

public static ClanChatInfo ToClanChatInfo(this AppClanChat appClanChat)

Parameters

appClanChat AppClanChat

The protobuf clan chat response.

Returns

ClanChatInfo

ToClanMessage(AppClanMessage)

Maps a single RustPlusContracts.AppClanMessage to a ClanMessage.

public static ClanMessage ToClanMessage(this AppClanMessage appClanMessage)

Parameters

appClanMessage AppClanMessage

The protobuf clan message.

Returns

ClanMessage

ToClanMessageEvent(AppNewClanMessage)

Maps an RustPlusContracts.AppNewClanMessage broadcast to a ClanMessageEventArg.

public static ClanMessageEventArg ToClanMessageEvent(this AppNewClanMessage appNewClanMessage)

Parameters

appNewClanMessage AppNewClanMessage

The protobuf new clan message broadcast.

Returns

ClanMessageEventArg

ToClanMessages(IEnumerable<AppClanMessage>)

Maps a sequence of RustPlusContracts.AppClanMessage to ClanMessage instances.

public static IEnumerable<ClanMessage> ToClanMessages(this IEnumerable<AppClanMessage> appClanMessages)

Parameters

appClanMessages IEnumerable<AppClanMessage>

The protobuf clan messages to map.

Returns

IEnumerable<ClanMessage>