本文整理汇总了C#中MessageReader.ReadInt64方法的典型用法代码示例。如果您正苦于以下问题:C# MessageReader.ReadInt64方法的具体用法?C# MessageReader.ReadInt64怎么用?C# MessageReader.ReadInt64使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MessageReader
的用法示例。
在下文中一共展示了MessageReader.ReadInt64方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadMessage
/// <summary>
/// Reads the <see cref="ChatMessageServerMessage"/> from the specified <see cref="MessageReader"/>.
/// </summary>
/// <param name="reader">
/// <see cref="MessageReader"/> that will be used to read the <see cref="ChatMessageServerMessage"/>.
/// </param>
public override void ReadMessage(MessageReader reader)
{
Message = reader.ReadString();
Name = reader.ReadString();
Level = reader.ReadInt32();
League = reader.ReadInt32();
UserID = reader.ReadInt64();
CurrentUserID = reader.ReadInt64();
if (reader.ReadBoolean())
{
Clan.ID = reader.ReadInt64();
Clan.Name = reader.ReadString();
Clan.Badge = reader.ReadInt32();
}
}
示例2: Create
public static UnknownField Create(MessageTag tag, MessageReader reader)
{
switch(tag.WireType)
{
case WireType.Fixed64: return new UnknownFieldFixed64(tag, reader);
case WireType.String: return new UnknownFieldString(tag, reader);
case WireType.StartGroup: return new UnknownFieldGroup(tag, reader);
case WireType.Fixed32: return new UnknownFieldFixed32(tag, reader);
}
return new UnknownFieldVarint(tag, reader.ReadInt64());
}
示例3: ReadMessage
/// <summary>
/// Reads the <see cref="LoginRequestMessage"/> from the specified <see cref="MessageReader"/>.
/// </summary>
/// <param name="reader">
/// <see cref="MessageReader"/> that will be used to read the <see cref="LoginRequestMessage"/>.
/// </param>
public override void ReadMessage(MessageReader reader)
{
SessionKey = reader.ReadBytes(CoCKeyPair.NonceLength);
Nonce = reader.ReadBytes(CoCKeyPair.NonceLength);
UserID = reader.ReadInt64();
UserToken = reader.ReadString();
ClientMajorVersion = reader.ReadInt32();
ClientContentVersion = reader.ReadInt32();
ClientMinorVersion = reader.ReadInt32();
FingerprintHash = reader.ReadString();
Unknown1 = reader.ReadString();
OpenUDID = reader.ReadString();
MacAddress = reader.ReadString();
DeviceModel = reader.ReadString();
LocaleKey = reader.ReadInt32();
Language = reader.ReadString();
AdvertisingGUID = reader.ReadString();
OSVersion = reader.ReadString();
Unknown2 = reader.ReadByte();
Unknown3 = reader.ReadString();
AndroidDeviceID = reader.ReadString();
FacebookDistributionID = reader.ReadString();
IsAdvertisingTrackingEnabled = reader.ReadBoolean();
VendorGUID = reader.ReadString();
Seed = reader.ReadInt32();
}
示例4: UnknownFieldVarint
public UnknownFieldVarint(MessageTag tag, MessageReader reader)
: base(tag, reader.ReadInt64())
{
}
示例5: ReadMessage
/// <summary>
/// Reads the <see cref="LoginSuccessMessage"/> from the specified <see cref="MessageReader"/>.
/// </summary>
/// <param name="reader">
/// <see cref="MessageReader"/> that will be used to read the <see cref="LoginSuccessMessage"/>.
/// </param>
public override void ReadMessage(MessageReader reader)
{
Nonce = reader.ReadBytes(CoCKeyPair.NonceLength);
PublicKey = reader.ReadBytes(CoCKeyPair.KeyLength);
UserID = reader.ReadInt64();
UserID1 = reader.ReadInt64();
UserToken = reader.ReadString();
FacebookID = reader.ReadString();
GameCenterID = reader.ReadString();
MajorVersion = reader.ReadInt32();
MinorVersion = reader.ReadInt32();
RevisionVersion = reader.ReadInt32();
ServerEnvironment = reader.ReadString();
LoginCount = reader.ReadInt32();
PlayTime = TimeSpan.FromSeconds(reader.ReadInt32());
Unknown1 = reader.ReadInt32();
FacebookAppID = reader.ReadString();
DateLastPlayed = DateTimeConverter.FromJavaTimestamp(double.Parse(reader.ReadString()));
DateJoined = DateTimeConverter.FromJavaTimestamp(double.Parse(reader.ReadString()));
Unknown2 = reader.ReadInt32();
GooglePlusID = reader.ReadString();
CountryCode = reader.ReadString();
Unknown3 = reader.ReadInt32();
}