Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5980093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:45:09+00:00 2026-05-22T21:45:09+00:00

We accept leads from lead providers. We only allow certain providers to post leads

  • 0

We accept leads from lead providers. We only allow certain providers to post leads to us during certain days/times. Currently, we have 3 schedules, but we might add 1 or n more in the future:

  1. Sunday @ 8AM – Friday @ 3PM — all hours in between.
  2. Monday – Friday from 8AM – 5 PM.
  3. 24 hours a day, every day.

In addition, we want to be able to one-off certain hours — so, we would have told some of the lead providers, “I know you normally post 8 AM – 5 PM M-F, but Monday is a holiday, so don’t post then.”

The problem is that some lead providers are not setup to handle a schedule (or just ignore it if they want to sell us more leads). So, I now have to add this check into our system at the point in which we take in leads, and first check to see if that lead provider (they identify themselves in the XML they send) is allowed to post leads at this particular time.

I honestly don’t know where to begin. Has anyone done this before? How did you handle it, and what is good/bad about your method?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:45:10+00:00Added an answer on May 22, 2026 at 9:45 pm

    This looks like somewhat complex rule-based logic, so the best way in my opinion would be to create a set of objects representing the entities involved. To clarify, I mean to model the rules to objects, applying the most appropriate design patterns applicable.

    For example, just out of my head now, if you say that a customer has a set of “rules” when to post, I would model this by having a method on the customer object, something like CanPost(DateTime postTime). That method would check the postTime against the rule collection, what can be as complex as you want them. At first, it can simply be two collections of these first “post-rules” and the ones you later mentioned as “exceptions” in the rules; but this can be really modeled to infinity. Check Martin Fowlers Analysis Patterns for a great reference to many complex domain models, and particularly if you can there is a Accounting Patterns e-book by Fowler, check the PostingRule section

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have two text boxes which accept any number. I have a text
We're developing a service that will accept a POST request. Some of the POST
I have a method that needs to accept an array of country names, and
I am told TFS can accept data on build/test metrics from 3rd party continuous
I need to accept inputs from keyboard in php. When the user is done
I need to accept form data to a WCF-based service. Here's the interface: [OperationContract]
YUI Compressor does not accept wildcard parameters, so I cannot run it like this:
When I create a socket using accept() and make a FILE out of it
I've build a WCF Service to accept a file and write it to disk.
How can you get MSSQL server to accept Unicode data by default into a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.