-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206 from OpenSRP/implement-closing-of-expired-ref…
…erral-intent-service Implement closing of expired referral intent service
- Loading branch information
Showing
16 changed files
with
522 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...hw-core/src/main/java/org/smartregister/chw/core/job/CloseExpiredReferralsServiceJob.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.smartregister.chw.core.job; | ||
|
||
import android.content.Intent; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
import org.smartregister.AllConstants; | ||
import org.smartregister.chw.core.sync.intent.CloseExpiredReferralsIntentService; | ||
import org.smartregister.job.BaseJob; | ||
|
||
/** | ||
* Created by cozej4 on 2020-02-08. | ||
* | ||
* @author cozej4 https://github.com/cozej4 | ||
*/ | ||
public class CloseExpiredReferralsServiceJob extends BaseJob { | ||
|
||
public static final String TAG = "CloseExpiredReferralsServiceJob"; | ||
|
||
@NonNull | ||
@Override | ||
protected Result onRunJob(@NonNull Params params) { | ||
Intent intent = new Intent(getApplicationContext(), CloseExpiredReferralsIntentService.class); | ||
getApplicationContext().startService(intent); | ||
return params != null && params.getExtras().getBoolean(AllConstants.INTENT_KEY.TO_RESCHEDULE, false) ? Result.RESCHEDULE : Result.SUCCESS; | ||
} | ||
} |
Oops, something went wrong.