コード例 #1
0
ファイル: Requestor.cs プロジェクト: codejamroad/Social-Care
    /// <summary>
    /// @param requestTracker
    /// @return
    /// </summary>
    public bool CreateRequest()
    {
        // New Request is created
        Request request = new Request
        {
            id             = 1,
            requestorId    = requestorId,
            status         = "Initialized",
            jobDescription = "XYZ"
        };

        requestTracker.requests.Add(request);

        bool requestStatus;

        // created request if handled by reception component
        requestStatus = myReception.HandleRequest(request);

        return(requestStatus);
    }