from packet.model_classes.Packet import Packet, StandardPacket, CustomPacket
from rest_framework import serializers


"""
PacketSerializer Class
"""
class PacketSerializer(serializers.ModelSerializer):

	class Meta:
		model = Packet


		fields = ('id', 'name', 'description', 'price', 'state', 'courses', 'image', 'type')




"""
PacketSerializer_imageToText Class
"""
class PacketSerializer_imageToText(serializers.ModelSerializer):
	image = serializers.CharField()

	class Meta:
		model = Packet

		fields = ('id', 'name', 'description', 'price', 'state', 'courses', 'image', 'type')






"""
StandardPacketSerializer Class
"""
class StandardPacketSerializer(serializers.ModelSerializer):

	class Meta:
		model = StandardPacket


		fields = ('id', 'name', 'description', 'price', 'durate', 'expiringDate', 'state', 'courses', 'image', 'type')






"""
CustomPacketSerializer Class
"""
class CustomPacketSerializer(serializers.ModelSerializer):

	class Meta:
		model = CustomPacket


		fields = ('id', 'name', 'description', 'price', 'startDate', 'endDate','state', 'courses', 'image', 'type')