예제 #1
0
        public async Task <RetsLookupTypeCollection> GetLookupType(IRetsClient session, string lookupName)
        {
            var lookupTypes = await GetLookupTypes(session);

            RetsLookupTypeCollection lookupType = lookupTypes.FirstOrDefault(x => x.Lookup.Equals(lookupName, StringComparison.CurrentCultureIgnoreCase));

            return(lookupType);
        }
예제 #2
0
        public async Task <RetsLookupTypeCollection> GetLookupTypes(IRetsClient session, string resourceId)
        {
            if (LookupTypes == null && Interpretation.StartsWith("Lookup", StringComparison.CurrentCultureIgnoreCase))
            {
                LookupTypes = await session.GetLookupValues(resourceId, SystemName);
            }

            return(LookupTypes);
        }