# File P4Triggers.rb, line 22
    def initialize( hash )
        @change = hash[ "change"  ]
        @user  = hash[ "user"    ]
        @client = hash[ "client"  ]
        @desc  = hash[ "desc"    ]
        @time  = Time.at( hash[ "time" ].to_i )

        @status        = hash[ "status"  ]
        @files = Array.new
        @jobs = Hash.new

        if ( hash.has_key?( "depotFile" ) )
            hash[ "depotFile" ].each_index do
                |i|
                name = hash[ "depotFile"      ][ i ]
                type = hash[ "type"           ][ i ]
                rev    = hash[ "rev"            ][ i ]
                act    = hash[ "action" ][ i ]

                df = P4DepotFile.new( name )
                dr = df.new_revision

                dr.type       = type
                dr.revno      = rev.to_i
                dr.action     = act

                @files.push( df )
            end
        end

        if ( hash.has_key?( "job" ) )
            hash[ "job" ].each_index do
                |i|
                job   = hash[ "job"      ][ i ]
                status        = hash[ "jobstat" ][ i ]
                @jobs[ job ] = status
            end
        end
    end