36 lines
968 B
C#
36 lines
968 B
C#
using System.Xml.Linq;
|
|
using CRIF.ACTion.Common;
|
|
using CRIF.ACTion.Common.Builders;
|
|
using CRIF.ACTion.Configuration;
|
|
|
|
namespace CRIF.ACTion.Loan
|
|
{
|
|
public class DealershipRequestBuilder : BuilderBase
|
|
{
|
|
|
|
public readonly string applicationId;
|
|
|
|
public DealershipRequestBuilder(string applicationId,
|
|
CrifSettings settings)
|
|
: base(CrifNamespaces.App.Namespace, settings)
|
|
{
|
|
this.applicationId = applicationId;
|
|
}
|
|
|
|
public override XElement Build(params XElement[] content)
|
|
{
|
|
var createAppElement = GetAppElement(applicationId);
|
|
|
|
return base.Build(createAppElement);
|
|
}
|
|
|
|
public static XElement GetAppElement(string applicationId)
|
|
{
|
|
var element = new XElement(CrifNamespaces.Empty + "getApplication");
|
|
element.SetAttributeValue("applicationID", applicationId);
|
|
|
|
return element;
|
|
}
|
|
}
|
|
}
|