private CompanyInfo(Company CompanyObject)
        {
            if (CompanyObject.GetSerializedInfo() == null)
                return;

            _SerializedInfo = CompanyObject.GetSerializedInfo();
            PopulateCompanyInfo();
            _Keys = GetKeys();
        }
 public static ProductInfo[] ParseProductInfo(Company CompanyObject)
 {
     dynamic _SerializedInfo = CompanyObject.GetSerializedInfo();
     int product_array_length;
     try
     {
         product_array_length = _SerializedInfo.products.Count;
     }
     catch
     {
         return null;
     }
     List<ProductInfo> rInfo = new List<ProductInfo>();
     for (int i = 0; i < product_array_length; i++)
     {
         rInfo.Add(new ProductInfo(_SerializedInfo.products[i]));
     }
     return rInfo.ToArray();
 }
Beispiel #3
0
 public static OfficeInfo[] ParseOfficeInfo(Company CompanyObject)
 {
     dynamic _SerializedInfo = CompanyObject.GetSerializedInfo();
     int offices_array_length;
     try
     {
         offices_array_length = _SerializedInfo.offices.Count;
     }
     catch
     {
         return null;
     }
     List<OfficeInfo> oInfo = new List<OfficeInfo>();
     for (int i = 0; i < offices_array_length; i++)
     {
         oInfo.Add(new OfficeInfo(_SerializedInfo.offices[i]));
     }
     return oInfo.ToArray();
 }
 public static MilestoneInfo[] ParseMilestonesInfo(Company CompanyObject)
 {
     dynamic _SerializedInfo = CompanyObject.GetSerializedInfo();
     int milestones_array_length;
     try
     {
         milestones_array_length = _SerializedInfo.milestones.Count;
     }
     catch
     {
         return null;
     }
     List<MilestoneInfo> rInfo = new List<MilestoneInfo>();
     for(int i = 0; i < milestones_array_length ; i++)
     {
         rInfo.Add(new MilestoneInfo(_SerializedInfo.milestones[i]));
     }
     return rInfo.ToArray();
 }
 public static CompetitorInfo[] ParseCompetitorInfo(Company CompanyObject)
 {
     dynamic _SerializedInfo = CompanyObject.GetSerializedInfo();
     int competitor_array_length;
     try
     {
         competitor_array_length = _SerializedInfo.competitions.Count;
     }
     catch
     {
         return null;
     }
     List<CompetitorInfo> cInfo = new List<CompetitorInfo>();
     for (int i = 0; i < competitor_array_length; i++)
     {
         cInfo.Add(new CompetitorInfo(_SerializedInfo.competitions[i]));
     }
     return cInfo.ToArray();
 }
 public static FundingRoundsInfo[] ParseFundingRoundsInfo(Company CompanyObject)
 {
     dynamic _SerializedInfo = CompanyObject.GetSerializedInfo();
     int funding_rounds_array_length;
     try
     {
         funding_rounds_array_length = _SerializedInfo.funding_rounds.Count;
     }
     catch
     {
         return null;
     }
     List<FundingRoundsInfo> frInfo = new List<FundingRoundsInfo>();
     for (int i = 0; i < funding_rounds_array_length; i++)
     {
         frInfo.Add(new FundingRoundsInfo(_SerializedInfo.funding_rounds[i]));
     }
     return frInfo.ToArray();
 }
 public static AcquisitionInfo[] ParseAcquisitionInfo(Company CompanyObject)
 {
     dynamic _SerializedInfo = CompanyObject.GetSerializedInfo();
     int acquisition_array_length;
     try
     {
         acquisition_array_length = _SerializedInfo.acquisitions.Count;
     }
     catch
     {
         return null;
     }
     List<AcquisitionInfo> rInfo = new List<AcquisitionInfo>();
     for (int i = 0; i < acquisition_array_length; i++)
     {
         rInfo.Add(new AcquisitionInfo(_SerializedInfo.acquisitions[i]));
     }
     return rInfo.ToArray();
 }
 public static ExternalLinkInfo[] ParseExternalLinksInfo(Company CompanyObject)
 {
     dynamic _SerializedInfo = CompanyObject.GetSerializedInfo();
     int external_links_array_length;
     try
     {
         external_links_array_length = _SerializedInfo.external_links.Count;
     }
     catch
     {
         return null;
     }
     List<ExternalLinkInfo> rInfo = new List<ExternalLinkInfo>();
     for(int i = 0; i < external_links_array_length ; i++)
     {
         rInfo.Add(new ExternalLinkInfo(_SerializedInfo.external_links[i]));
     }
     return rInfo.ToArray();
 }
 public static RelationshipInfo[] ParseRelationshipInfo(Company CompanyObject)
 {
     dynamic _SerializedInfo = CompanyObject.GetSerializedInfo();
     int relationship_array_length;
     try
     {
         relationship_array_length= _SerializedInfo.relationships.Count;
     }
     catch
     {
         return null;
     }
     List<RelationshipInfo> rInfo = new List<RelationshipInfo>();
     for(int i = 0; i < relationship_array_length ; i++)
     {
         rInfo.Add(new RelationshipInfo(_SerializedInfo.relationships[i]));
     }
     return rInfo.ToArray();
 }
 public static VideoEmbedInfo[] ParseVideoEmbedsInfo(Company CompanyObject)
 {
     dynamic _SerializedInfo = CompanyObject.GetSerializedInfo();
     int video_embeds_array_length;
     try
     {
         video_embeds_array_length = _SerializedInfo.video_embeds.Count;
     }
     catch
     {
         return null;
     }
         List<VideoEmbedInfo> rInfo = new List<VideoEmbedInfo>();
     for(int i = 0; i < video_embeds_array_length ; i++)
     {
         rInfo.Add(new VideoEmbedInfo(_SerializedInfo.video_embeds[i]));
     }
     return rInfo.ToArray();
 }
 public static ScreenshotsInfo[] ParseScreenshotsInfo(Company CompanyObject)
 {
     dynamic _SerializedInfo = CompanyObject.GetSerializedInfo();
     int screenshot_array_length;
     try
     {
         screenshot_array_length = _SerializedInfo.screenshots.Count;
     }
     catch
     {
         return null;
     }
     List<ScreenshotsInfo> sInfo = new List<ScreenshotsInfo>();
     for (int i = 0; i < screenshot_array_length; i++)
     {
         sInfo.Add(new ScreenshotsInfo(_SerializedInfo.screenshots[i]));
     }
     return sInfo.ToArray();
 }
Beispiel #12
0
 public static CompanyInfo ParseCompanyInfo(Company CompanyObject)
 {
     return (new CompanyInfo(CompanyObject));
 }