Git.vala 505 B

12345678910111213141516
  1. using Invercargill;
  2. namespace Usm {
  3. public class Git {
  4. public string origin { get; set; }
  5. public string commit { get; set; }
  6. public static PropertyMapper<Git> get_mapper() {
  7. return new PropertyMapperBuilder<Git>()
  8. .map<string>("origin", o => o.origin, (o, v) => o.origin = v)
  9. .map<string>("commit", o => o.commit, (o, v) => o.commit = v)
  10. .set_constructor(() => new Git())
  11. .build();
  12. }
  13. }
  14. }