Task management

Ready for Sale

UTILITYTOOLS

Contract purpose

The purpose of the contract is to keep a list of tasks and their active status. The contract owner can set tasks for different addresses with deadlines. Only the task receiver can set the task done or undone. The contract owner can also set a new deadlines.

Parameters:

ownerAddress: the owner address

Exposed methods

addTask allows the owner to set a new task

parameter nametypedetails
taskOwneraddressthe taskOwner address
deadlineuintthe task deadline in seconds - epoch value

setNewTaskDeadline contract owner can set a new deadline for the specified task

parameter nametypedetails
taskIduintthe taskId
newDeadlineuintthe task deadline in seconds - epoch value

setTaskDone the task receiver can set the task done

parameter nametypedetails
taskIduintthe taskId

setTaskUnDone the task receiver can set the task undone; in case he considers the task in progress

parameter nametypedetails
taskIduintthe taskId

taskOwners gets if an address is a task owner

parameter nametypedetails
taskOwneraddressthe taskOwner address

tasks gets the task with specified number

parameter nametypedetails
taskIduintthe taskId

Example:

Initial:ownerAddress: 0xca35b7d915458ef540ade6068dfe2f44e8fa733c

Add task:

taskOwner: 0xca35b7d915458ef540ade6068dfe2f44e8fa733c
deadline: 1525101040

Reviewed by Modex
Buy

Copyright © Modex Marketplace