public void PreProcess(RestSharp.IRestRequest request) { if (!Name.IsNullOrWhitespace()) { request.AddParameterExclusive("cn", Name.Truncate(100)); } if (!Source.IsNullOrWhitespace()) { request.AddParameterExclusive("cs", Source.Truncate(100)); } if (!Medium.IsNullOrWhitespace()) { request.AddParameterExclusive("cm", Medium.Truncate(50)); } if (!Keyword.IsNullOrWhitespace()) { request.AddParameterExclusive("ck", Keyword.Truncate(500)); } if (!Content.IsNullOrWhitespace()) { request.AddParameterExclusive("cc", Content.Truncate(500)); } if (!ID.IsNullOrWhitespace()) { request.AddParameterExclusive("ci", ID.Truncate(100)); } }