<filename>a10structures/build/lib/a10/structures/claim.py
# Copyright 2021 Nokia
# Licensed under the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

import a10.structures.timestamps


class Claim:
    def __init__(self, e_struct, p_struct, treq, trec, payload, aps, td, sessionid):
        self.s = {}
        self.s["header"] = {}

        self.s["header"]["element"] = e_struct
        self.s["header"]["policy"] = p_struct
        self.s["header"]["as_received"] = trec
        self.s["header"]["as_requested"] = treq
        self.s["header"]["additionalparameters"] = aps
        self.s["header"]["transientdata"]= td 
        self.s["payload"] = payload

        if sessionid==None:
            self.s["header"]["session"] = ""       
        else:
            self.s["header"]["session"]= sessionid

    def asDict(self):
        return self.s

<filename>a10structures/build/lib/a10/structures/claim.py
# Copyright 2021 Nokia
# Licensed under the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

import a10.structures.timestamps


class Claim:
    def __init__(self, e_struct, p_struct, treq, trec, payload, aps, td, sessionid):
        self.s = {}
        self.s["header"] = {}

        self.s["header"]["element"] = e_struct
        self.s["header"]["policy"] = p_struct
        self.s["header"]["as_received"] = trec
        self.s["header"]["as_requested"] = treq
        self.s["header"]["additionalparameters"] = aps
        self.s["header"]["transientdata"]= td 
        self.s["payload"] = payload

        if sessionid==None:
            self.s["header"]["session"] = ""       
        else:
            self.s["header"]["session"]= sessionid

    def asDict(self):
        return self.s

# Copyright 2021 Nokia # Licensed under the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause