Ejemplo n.º 1
0
 protected override void DeserializePayload(BEReader reader)
 {
     Flags       = (DeviceFlags)reader.ReadUInt32();
     DeviceType  = (DeviceType)reader.ReadUInt16();
     Name        = reader.ReadString();
     HardwareId  = Guid.Parse(reader.ReadString());
     LastError   = reader.ReadUInt32();
     Certificate = CryptoExtensions.DeserializeCertificateAsn(reader.ReadBlob());
 }
 public override void Deserialize(BEReader reader)
 {
     TextSessionId     = reader.ReadUInt64();
     TextBufferVersion = reader.ReadUInt32();
     TextOptions       = (TextOption)reader.ReadUInt32();
     InputScope        = (TextInputScope)reader.ReadUInt32();
     MaxTextLength     = reader.ReadUInt32();
     Locale            = reader.ReadString();
     Prompt            = reader.ReadString();
 }
Ejemplo n.º 3
0
 public override void Deserialize(BEReader reader)
 {
     TextSessionId     = reader.ReadUInt64();
     TextBufferVersion = reader.ReadUInt32();
     Result            = (TextResult)reader.ReadUInt16();
     Text = reader.ReadString();
 }
 void ISerializable.Deserialize(BEReader reader)
 {
     LiveTVProvider = reader.ReadUInt32();
     MajorVersion   = reader.ReadUInt32();
     MinorVersion   = reader.ReadUInt32();
     BuildNumber    = reader.ReadUInt32();
     Locale         = reader.ReadString();
 }
        public override void Deserialize(BEReader reader)
        {
            State = new MediaState();

            State.TitleId         = reader.ReadUInt32();
            State.AumId           = reader.ReadString();
            State.AssetId         = reader.ReadString();
            State.MediaType       = (MediaType)reader.ReadUInt16();
            State.SoundLevel      = (MediaSoundLevel)reader.ReadUInt16();
            State.EnabledCommands = (MediaControlCommands)reader.ReadUInt32();
            State.PlaybackStatus  = (MediaPlaybackStatus)reader.ReadUInt16();
            State.PlaybackRate    = reader.ReadSingle();
            State.Position        = TimeSpan.FromTicks((long)reader.ReadUInt64());
            State.MediaStart      = TimeSpan.FromTicks((long)reader.ReadUInt64());
            State.MediaEnd        = TimeSpan.FromTicks((long)reader.ReadUInt64());
            State.MinimumSeek     = TimeSpan.FromTicks((long)reader.ReadUInt64());
            State.MaximumSeek     = TimeSpan.FromTicks((long)reader.ReadUInt64());

            State.Metadata = new ReadOnlyDictionary <string, string>(
                reader.ReadArray <MediaMetadata>().ToDictionary(entry => entry.Name, entry => entry.Value));
        }
Ejemplo n.º 6
0
        void ISerializable.Deserialize(BEReader reader)
        {
            TitleId = reader.ReadUInt32();

            // This is weird:
            HasFocus      = reader.ReadByte() == 128;
            TitleLocation = (ActiveTitleLocation)reader.ReadByte();

            ProductId = new Guid(reader.ReadBytes(16));
            SandboxId = new Guid(reader.ReadBytes(16));

            AumId = reader.ReadString();
        }
 public override void Deserialize(BEReader reader)
 {
     TextSessionId       = reader.ReadUInt32();
     BaseVersion         = reader.ReadUInt32();
     SubmittedVersion    = reader.ReadUInt32();
     TotalTextBytelength = reader.ReadUInt32();
     SelectionStart      = reader.ReadUInt32();
     SelectionLength     = reader.ReadUInt32();
     Flags = reader.ReadUInt16();
     TextChunkByteStart = reader.ReadUInt32();
     TextChunk          = reader.ReadString();
     Delta = reader.ReadArray <TextDelta>();
 }
Ejemplo n.º 8
0
        void ISerializable.Deserialize(BEReader reader)
        {
            TitleId = reader.ReadUInt32();

            ushort titleDisposition = reader.ReadUInt16();

            HasFocus      = (titleDisposition & 0x8000) == 0x8000;
            TitleLocation = (ActiveTitleLocation)(titleDisposition & 0x7FFF);

            ProductId = new Guid(reader.ReadBytes(16));
            SandboxId = new Guid(reader.ReadBytes(16));

            AumId = reader.ReadString();
        }
Ejemplo n.º 9
0
 public void Deserialize(BEReader reader)
 {
     Host    = reader.ReadString();
     Service = reader.ReadString();
 }
Ejemplo n.º 10
0
 public override void Deserialize(BEReader reader)
 {
     Json = reader.ReadString();
 }
 public void Deserialize(BEReader reader)
 {
     Name  = reader.ReadString();
     Value = reader.ReadString();
 }
Ejemplo n.º 12
0
 protected override void DeserializePayload(BEReader reader)
 {
     LiveId = reader.ReadString();
 }
Ejemplo n.º 13
0
 public void Deserialize(BEReader reader)
 {
     Offset        = reader.ReadUInt32();
     DeleteCount   = reader.ReadUInt32();
     InsertContent = reader.ReadString();
 }