Esempio n. 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("testing UnfuddleAPIHelper...");
            Console.WriteLine("");

            Settings settings = new Settings();
            settings.ApiVersion = "1";
            settings.UseSsl = true;
            settings.Subdomain = ConfigurationManager.AppSettings["Unfuddle.Subdomain"];
            settings.Username = ConfigurationManager.AppSettings["Unfuddle.Username"];
            settings.Password = ConfigurationManager.AppSettings["Unfuddle.Password"];

            Ticket t = new Ticket(settings);
            t.ProjectId = 3;
            t.GetByNumber(1);
            //t.CreatedAt = DateTime.Now;
            t.Description = "blah blah balh x";
            t.DescriptionFormat = Format.MARKDOWN;
            //t.DescriptionFormatted = false;
            t.Priority = Priority.THREE;
            //t.Resolution = Resolution.WORKS_FOR_ME;
            t.Summary = "updated ticket via api";
            t.Status = Status.NEW;
            bool result = t.Update();
            Console.WriteLine("-------------: tickte Update? " + result + ", " + t.Id);

            //List<Ticket> list = t.GetList();
            //foreach (Ticket item in list)
            //{
            //    Console.WriteLine(item.ToXml());
            //    Console.WriteLine("-------------");
            //}

            //Project p = new Project(settings);
            //p.GetByName("project");
            //Console.WriteLine(p.ToXml());

            //Backup o = new Backup();
            //o.CreatedAt = DateTime.Now;
            //o.Parts = 222;
            //o.ProjectID = 2;

            Console.WriteLine("");
            Console.WriteLine("finished");
            Console.WriteLine("");
        }
Esempio n. 2
0
 public Involvement(Settings settings)
     : base(settings)
 {
 }
Esempio n. 3
0
 public TimeEntry(Settings settings)
     : base(settings)
 {
 }
Esempio n. 4
0
 public Backup(Settings settings)
     : base(settings)
 {
 }
Esempio n. 5
0
 public Category(Settings settings)
     : base(settings)
 {
 }
Esempio n. 6
0
 public Severity(Settings settings)
     : base(settings)
 {
 }
Esempio n. 7
0
 public Ticket(Settings settings)
     : base(settings)
 {
 }
Esempio n. 8
0
 public BaseModel(Settings settings)
 {
     this.Settings = settings;
 }
Esempio n. 9
0
 public Person(Settings settings)
     : base(settings)
 {
 }
 public TicketAssociation(Settings settings)
     : base(settings)
 {
 }
Esempio n. 11
0
 public Project(Settings settings)
     : base(settings)
 {
 }
Esempio n. 12
0
 public Subscription(Settings settings)
     : base(settings)
 {
 }
Esempio n. 13
0
 public Changeset(Settings settings)
     : base(settings)
 {
 }