2010-09-04 12:26:12 +00:00
|
|
|
// SparkleShare, an instant update workflow to Git.
|
|
|
|
// Copyright (C) 2010 Hylke Bons <hylkebons@gmail.com>
|
|
|
|
//
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2010-11-21 12:33:24 +00:00
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2010-09-04 12:26:12 +00:00
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace SparkleLib {
|
|
|
|
|
|
|
|
// Arguments for most events
|
2011-05-01 13:40:46 +00:00
|
|
|
public class SparkleEventArgs : EventArgs {
|
|
|
|
|
2010-09-04 12:26:12 +00:00
|
|
|
public string Type;
|
|
|
|
public string Message;
|
|
|
|
|
|
|
|
public SparkleEventArgs (string type)
|
|
|
|
{
|
|
|
|
Type = type;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Arguments for the NewCommit event
|
2011-05-01 13:40:46 +00:00
|
|
|
public class NewCommitArgs : EventArgs {
|
2010-09-04 12:26:12 +00:00
|
|
|
|
|
|
|
public string Author;
|
|
|
|
public string Email;
|
|
|
|
public string Message;
|
2010-10-16 22:48:50 +00:00
|
|
|
public string RepositoryPath;
|
2010-09-04 12:26:12 +00:00
|
|
|
|
2010-10-16 22:48:50 +00:00
|
|
|
public NewCommitArgs (string author, string email, string message, string repository_path)
|
2010-09-04 12:26:12 +00:00
|
|
|
{
|
|
|
|
Author = author;
|
|
|
|
Email = email;
|
|
|
|
Message = message;
|
2010-10-16 22:48:50 +00:00
|
|
|
RepositoryPath = repository_path;
|
2010-09-04 12:26:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|