/// <summary> /// Initializes a new instance of the PolicyControlRequest class. /// </summary> /// <param name="operation">Operation to perform.</param> internal PolicyControlRequest(NodeManagerPolicy policy, NodeManagerDomainId domainId, byte policyId) { // [0:2] Policy Enable/Disable // [3:7] Reserved. Write as 00. this.policyEnabled = (byte)((byte)policy & 0x07); // [0:3] Domain Id // [4:7] Reserved. Write as 00. this.domainId = (byte)((byte)domainId & 0x0f); // Policy Id this.policyId = policyId; }