示例#1
0
        internal string GoToWork(TurtleContext context)
        {
            string results = string.Empty;
            // Go do some work

            results = "We went to work";
            return results;
        }
示例#2
0
        internal string WakeUp(TurtleContext context)
        {
            string results;

            // Start some stuff

            results = "We started and now we're finished.";
            return GoToWork(context);
        }
示例#3
0
        public static string GoToWork(TurtleContext context)
        {
            // TODO: Everything - At least we don't have to ride the train, amirite?? Because I'm a turtle..

            string results;
            TurtlePower turtlePower = new TurtlePower(context);

            if (context.Arguments.Length == 0)
            {
                // No arguments gets info
                //TODO:
                results = turtlePower.TurtleInfo();
            }
            else
            {
                // Create a turtle chore
                context.TurtleChore = new TurtleChore(context).CreateTurtleChore();
                // Figure out how todo work once we've decided there is work todo
                results = "error with args \n" + turtlePower.TurtleInfo();
            }

            return results;
        }
示例#4
0
 internal TurtlePower(TurtleContext context)
 {
     this.context = context;
 }
示例#5
0
 // do we have a turtle context
 internal TurtleEngine()
 {
     if (TurtleContext == null)
     {
         TurtleContext = new TurtleContext();
     }
 }
示例#6
0
 /// <summary>
 /// This is only used to generate reports off a context that already has done a task
 /// TODO: PaperMonkeyBot - he generates reports out of JSON
 /// </summary>
 /// <param name="context"></param>
 /// <returns></returns>
 private string PaperMonkey(TurtleContext context)
 {
     throw new NotImplementedException();
 }
示例#7
0
 public TurtleSync(TurtleContext context)
 {
     Context = context;
     SetUpTheSink();
 }