Exemplo n.º 1
0
 public DataAction(NameValueCollection form)
 {
     this.Type = DataActionResult.ParseType(form["!nativeeditor_status"]);
     if (form["id"] != null)
     {
         this.SourceId = long.Parse(form["id"]);
         this.TargetId = long.Parse(form["id"]);
     }
     else
     {
         this.SourceId = 0L;
         this.TargetId = 0L;
     }
 }
Exemplo n.º 2
0
 public DataAction(string status, long source_id, long target_id)
 {
     this.Type     = DataActionResult.ParseType(status);
     this.SourceId = source_id;
     this.TargetId = target_id;
 }
Exemplo n.º 3
0
 public DataAction(string status, int source_id, int target_id)
 {
     this.Type     = DataActionResult.ParseType(status);
     this.SourceId = (long)source_id;
     this.TargetId = (long)target_id;
 }