Exemplo n.º 1
0
        public Silanis.ESL.SDK.DelegationReport ToSDKDelegationReport()
        {
            if (apiDelegationReport == null)
            {
                return(sdkDelegationReport);
            }

            Silanis.ESL.SDK.DelegationReport result = new Silanis.ESL.SDK.DelegationReport();

            result.From = apiDelegationReport.From;
            result.To   = apiDelegationReport.To;

            foreach (Silanis.ESL.API.DelegationEventReport apiDelegationEventReport in apiDelegationReport.DelegationEventReports)
            {
                result.AddDelegationEventReport(new DelegationEventReportConverter(apiDelegationEventReport).ToSDKDelegationEventReport());
            }

            return(result);
        }
        public Silanis.ESL.SDK.DelegationReport ToSDKDelegationReport()
        {
            if (apiDelegationReport == null)
            {
                return(sdkDelegationReport);
            }

            Silanis.ESL.SDK.DelegationReport result = new Silanis.ESL.SDK.DelegationReport();

            result.From = apiDelegationReport.From;
            result.To   = apiDelegationReport.To;

            foreach (KeyValuePair <string, IList <Silanis.ESL.API.DelegationEventReport> > apiDelegationEventDictionary in apiDelegationReport.DelegationEvents)
            {
                result.DelegationEvents.Add(apiDelegationEventDictionary.Key, GetSDKDelegationEventList(apiDelegationEventDictionary.Value));
            }

            return(result);
        }
Exemplo n.º 3
0
 public DelegationReportConverter(Silanis.ESL.SDK.DelegationReport sdkDelegationReport)
 {
     this.sdkDelegationReport = sdkDelegationReport;
 }