Exemplo n.º 1
0
                internal App(CMsgClientAppInfoResponse.App app, AppInfoStatus status)
                {
                    Status       = status;
                    AppID        = app.app_id;
                    ChangeNumber = app.change_number;
                    Sections     = new Dictionary <EAppInfoSection, KeyValue>();

                    foreach (var section in app.sections)
                    {
                        KeyValue kv = new KeyValue();
                        using (MemoryStream ms = new MemoryStream(section.section_kv))
                            kv.ReadAsBinary(ms);

                        Sections.Add(( EAppInfoSection )section.section_id, kv);
                    }
                }
Exemplo n.º 2
0
 internal App(uint appid, AppInfoStatus status)
 {
     Status = status;
     AppID  = appid;
 }
Exemplo n.º 3
0
 internal App( uint appid, AppInfoStatus status )
 {
     Status = status;
     AppID = appid;
 }
Exemplo n.º 4
0
                internal App( CMsgClientAppInfoResponse.App app, AppInfoStatus status )
                {
                    Status = status;
                    AppID = app.app_id;
                    ChangeNumber = app.change_number;
                    Sections = new Dictionary<EAppInfoSection, KeyValue>();

                    foreach ( var section in app.sections )
                    {
                        KeyValue kv = new KeyValue();

                        using ( MemoryStream ms = new MemoryStream( section.section_kv ) )
                        {
                            if ( kv.TryReadAsBinary( ms ) )
                            {
                                Sections.Add( ( EAppInfoSection )section.section_id, kv );
                            }
                        }
                    }
                }
Exemplo n.º 5
0
                internal App( CMsgClientAppInfoResponse.App app, AppInfoStatus status )
                {
                    Status = status;
                    AppID = app.app_id;
                    ChangeNumber = app.change_number;
                    Sections = new Dictionary<EAppInfoSection, KeyValue>();

                    foreach ( var section in app.sections )
                    {
                        KeyValue kv = new KeyValue();

                        using ( MemoryStream ms = new MemoryStream( section.section_kv ) )
                            kv.ReadAsBinary( ms );

                        if ( kv.Children != null )
                        {
                            Sections.Add( ( EAppInfoSection )section.section_id, kv.Children.FirstOrDefault() ?? KeyValue.Invalid );
                        }
                    }
                }