Bedlington Community: Strictly Techies Only - Bedlington Community

Jump to content

0
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Strictly Techies Only Bedlington.co.uk API

#1 User is offline   Fourgeeā„¢ 

  • Administrator & Code Entomologist
  • PipPipPipPipPip
  • View gallery
  • Group: Administrators
  • Posts: 1,123
  • Joined: 20-October 05
Reputation: 72
Excellent

Posted 21 December 2009 - 10:48 AM

It's probably not likely to be used (maybe next decade) but the capability is there so I thought I might as well post on the off chance. We have an API in place if there are any local websites or organisations who are ahead of the curve as far as the Internet goes and want to use it.

PM for more info. Methods exist for posting new topics, registering users, sending PMs and a lot more besides.
0

#2 User is offline   threegee 

  • Senior Bedlingtonian
  • PipPipPipPipPipPip
  • View gallery
  • Group: Administrators
  • Posts: 1,447
  • Joined: 20-October 05
Reputation: 91
Excellent

Posted 21 December 2009 - 04:12 PM

Is there an order_a_pizza method yet? Posted Image

Suggested prototype:

yumminess order_pizza( pizzType,  pizzSize,  pizzTopping, delAddr); 


Just starting work on a fist draft of htpdl: -- Hypertext Pizza Description Language Posted Image
0

#3 User is offline   Andy Brown 

  • Terrier
  • PipPipPip
  • Group: Members
  • Posts: 100
  • Joined: 31-October 05
Reputation: 10
Good

Posted 21 December 2009 - 08:42 PM

View Postthreegee, on 21 December 2009 - 04:12 PM, said:

Is there an order_a_pizza method yet? Posted Image

Suggested prototype:

yumminess order_pizza( pizzType, pizzSize, pizzTopping, delAddr); 


Just starting work on a fist draft of htpdl: -- Hypertext Pizza Description Language Posted Image


Hmm would need an entry for TTD (Time_to_delivery) most times are quoted as 45mins to an hour, any deviation from this may upset the function :)
0

#4 User is offline   threegee 

  • Senior Bedlingtonian
  • PipPipPipPipPipPip
  • View gallery
  • Group: Administrators
  • Posts: 1,447
  • Joined: 20-October 05
Reputation: 91
Excellent

Posted 21 December 2009 - 10:33 PM

View PostAndy Brown, on 21 December 2009 - 08:42 PM, said:

Hmm would need an entry for TTD (Time_to_delivery) most times are quoted as 45mins to an hour, any deviation from this may upset the function Posted Image


// Sample code only, needs exception handlers

ttd order_pizza( char* delAddr, enum pizzType, int pizzSize=8, int pizzTopping=NONE );

if (order_pizza( dadd, ptyp, psiz, ptop) > 45) {
    	cancel_pizza();
    	order_fishnchips( dadd);
    	post_message( "The Bedlington Consumer", "Slow Service!", comptxt*);
}
else post_message( "The Bedlington Consumer", "Good Service!", praisetxt*);
while (eating) {
    	poll_chat();
}

0

#5 User is offline   Andy Brown 

  • Terrier
  • PipPipPip
  • Group: Members
  • Posts: 100
  • Joined: 31-October 05
Reputation: 10
Good

Posted 22 December 2009 - 06:38 AM

View Postthreegee, on 21 December 2009 - 10:33 PM, said:

// Sample code only, needs exception handlers

ttd order_pizza( char* delAddr, enum pizzType, int pizzSize=8, int pizzTopping=NONE );

if (order_pizza( dadd, ptyp, psiz, ptop) > 45) {
 	cancel_pizza();
 	order_fishnchips( dadd);
 	post_message( "The Bedlington Consumer", "Slow Service!", comptxt*);
}
else post_message( "The Bedlington Consumer", "Good Service!", praisetxt*);
while (eating) {
 	poll_chat();
}



Ha ha, show off
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users