import Foundation

struct MVitaPtpMessageOutRequestCommand:MVitaPtpMessageOutProtocol
{
    let data:Data
    
    init()
    {
        let builder:MVitaPtpMessageOutBuilder = MVitaPtpMessageOutBuilder()
        builder.append(value:MVitaPtpType.commandRequest)
        builder.append(value:MVitaPtpDataPhase.none)
        builder.appendTransactionId()
        
        data = builder.export()
    }
}

import Foundation

struct MVitaPtpMessageOutRequestCommand:MVitaPtpMessageOutProtocol
{
    let data:Data
    private let kGuidStart:UInt32 = 0
    private let kGuidEnd:UInt32 = 0
    
    init()
    {
        let builder:MVitaPtpMessageOutBuilder = MVitaPtpMessageOutBuilder()
        builder.append(value:MVitaPtpType.commandRequest)
        builder.append(value:MVitaPtpDataPhase.none)
        builder.appendTransactionId()
        builder.append(value:kGuidStart)
        builder.append(value:kGuidEnd)
        
        data = builder.export()
    }
}

Send guid on command request
Send guid on command request
