/// <summary> /// Parse child tag /// </summary> protected override ITlvTag ParseChild(ITlvTag childTag) { switch (childTag.Type) { case Constants.AggregatorConfigResponsePayload.MaxLevelTagType: return(_maxLevel = GetIntegerTag(childTag)); case Constants.AggregatorConfigResponsePayload.AggregationAlgorithmTagType: return(_aggregationAlgorithm = GetIntegerTag(childTag)); case Constants.AggregatorConfigResponsePayload.AggregationPeriodTagType: return(_aggregationPeriod = GetIntegerTag(childTag)); case Constants.AggregatorConfigResponsePayload.MaxRequestsTagType: return(_maxRequests = GetIntegerTag(childTag)); case Constants.AggregatorConfigResponsePayload.ParentUriTagType: StringTag uriTag = GetStringTag(childTag); ParentsUris.Add(uriTag.Value); return(uriTag); default: return(base.ParseChild(childTag)); } }
/// <summary> /// Parse child tag /// </summary> protected override ITlvTag ParseChild(ITlvTag childTag) { switch (childTag.Type) { case Constants.ExtenderConfigResponsePayload.MaxRequestsTagType: return(_maxRequests = GetIntegerTag(childTag)); case Constants.ExtenderConfigResponsePayload.ParentUriTagType: StringTag uriTag = GetStringTag(childTag); ParentsUris.Add(uriTag.Value); return(uriTag); case Constants.ExtenderConfigResponsePayload.CalendarFirstTimeTagType: return(_calendarFirstTime = GetIntegerTag(childTag)); case Constants.ExtenderConfigResponsePayload.CalendarLastTimeTagType: return(_calendarLastTime = GetIntegerTag(childTag)); default: return(base.ParseChild(childTag)); } }