Skip to content

Commit

Permalink
Add new result types
Browse files Browse the repository at this point in the history
  • Loading branch information
renner committed Feb 1, 2017
1 parent e4c4ffd commit 8c17c6e
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions src/main/java/com/suse/salt/netapi/results/ModuleRun.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
package com.suse.salt.netapi.results;

/**
* result of a module.run in a state file
* @param <R> inner changes type
*/
public class ModuleRun<R> {

private final R changes;
private final String comment;
private final boolean result;

/**
* constructor
*
* @param changesIn changes
* @param commentIn comment
* @param resultIn result
*/
public ModuleRun(R changesIn, String commentIn, boolean resultIn) {
this.changes = changesIn;
this.comment = commentIn;
this.result = resultIn;
}

/**
* get changes
* @return changes
*/
public R getChanges() {
return changes;
}

/**
* get comment
* @return comment
*/
public String getComment() {
return comment;
}

/**
* get result
* @return result
*/
public boolean isResult() {
return result;
}
}

0 comments on commit 8c17c6e

Please sign in to comment.